Mischino19 2 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 cawte cel som dat na server ked napisete /fix ze vam to opravi auto....mam to a ide to ale chcem to spravit tak ze ked bude auto horet tak sa automaticky opravi a nejde mi to pls poradte to je asi dmcd forward ScanVehicleHealth public ScanVehicleHealth(){ new Float:HP; for(new i=0;i { if(!IsPlayerInArea(i, -1218.4819, -1086.8854, -970.1301,-880.0761) && IsPlayerInAnyVehicle(i)) { for(new v=0;v { GetVehicleHealth(v,Float:HP); if(Float:HP < 250) { SetVehicleHealth(v,400); } } } } } Link to comment Share on other sites More sharing options...
0 癌癌癌 1 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 GetVehicleHealth(v,Float:HP); if(Float:HP < 250) napis jen HP Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Červenec, 2009 Author Share Odesláno: 14. Červenec, 2009 namiesto isplayerinare mam dat GetVehicleHealth(v,Float:HP); if(Float:HP < 250) ? Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 takto forward ScanVehicleHealth; public ScanVehicleHealth() { for(new i=0;i { if(!IsPlayerInArea(i, -1218.4819, -1086.8854, -970.1301,-880.0761) && IsPlayerInAnyVehicle(i))//toto je podminka ze nesmi byt v teto oblasti tak pozor kte testujes XD { for(new v=0;v { new Float:HP; GetVehicleHealth(v,HP); if(HP < 250) { SetVehicleHealth(v,400);//nwm jenom 400 pokud chces aby se uplne opravi ldej 1000 } } } } return 1; } Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Červenec, 2009 Author Share Odesláno: 14. Červenec, 2009 thx za ochotu ale mne to hadze error na .pwn(6808) : error 017: undefined symbol "IsPlayerInArea" if(!IsPlayerInArea(i, -1218.4819, -1086.8854, -970.1301,-880.0761) && IsPlayerInAnyVehicle(i)) Link to comment Share on other sites More sharing options...
0 癌癌癌 1 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 IsPlayerInArea neni funkce ... to by sis ji musel udělat ... kdyžtak jestli to maš podle FreeWallova TuTu tak se tam koukni znova .. Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Červenec, 2009 Author Share Odesláno: 14. Červenec, 2009 ee neni to od freewalla Link to comment Share on other sites More sharing options...
0 癌癌癌 1 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 ee neni to od freewalla to je jedno stejně si tam musiš tu funkci vytvořit Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Červenec, 2009 Author Share Odesláno: 14. Červenec, 2009 lol serem nato xD nemam nato nervy Link to comment Share on other sites More sharing options...
0 Guest Joda Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 pche nekde najdes ne Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Červenec, 2009 Author Share Odesláno: 14. Červenec, 2009 thy hovorim ze serem nato xD Link to comment Share on other sites More sharing options...
0 癌癌癌 1 Odesláno: 14. Červenec, 2009 Share Odesláno: 14. Červenec, 2009 lol serem nato xD nemam nato nervy a vlastně proč povoluješ fix jen když je v určitý oblasti? Link to comment Share on other sites More sharing options...
Dotaz
Mischino19 2
cawte cel som dat na server ked napisete /fix ze vam to opravi auto....mam to a ide to ale chcem to spravit tak ze ked bude auto horet tak sa automaticky opravi a nejde mi to pls poradte to je asi dmcd
forward ScanVehicleHealth
public ScanVehicleHealth(){
new Float:HP;
for(new i=0;i
{
if(!IsPlayerInArea(i, -1218.4819, -1086.8854, -970.1301,-880.0761) &&
IsPlayerInAnyVehicle(i))
{
for(new v=0;v
{
GetVehicleHealth(v,Float:HP);
if(Float:HP < 250)
{
SetVehicleHealth(v,400);
}
}
}
}
}
Link to comment
Share on other sites
11 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now