Quote:
Originally Posted by milanosie
ow, lol readed wrong:
uhm,
pawn Код:
for(new h = 0; h < sizeof(MAX_VEHICLES); h++)
Do something witht that I think
|
Quote:
Originally Posted by Babul
hey, heey!
you should pay attention to
so doing
pawn Код:
new VehID=GetPlayerSurfingVehicleID(playerid); //and maybe //SetVehicleHealth(VehID,250);//explodes the vehicle when you jump onto it (only with a driver, else its not synced)
will work
heres a snippet of my /info command:
pawn Код:
new PlayerSurfing=GetVehicleModel(GetPlayerSurfingVehicleID(Player)); if (PlayerSurfing==0) { // On Foot format(string,sizeof(string),"%s - on foot",string); } else { // Surfing format(string,sizeof(string),"%s - Surfing %s",string,VehName[PlayerSurfing-400]); }
as you see, the case 0 at surfing, is an invalid vehicle model id. also the first created vehicle in a server starts at 1 - so you may use the trick with a vehicle id, or even its model id heheh
|
Oh DAMN xD
Now i know why the ID got so horribly weird. Thx i will try that out, if one of my tester is online, then ill try
Код:
GetVehicleModel(GetPlayerSurfingVehicleID(Player)
This was the code i needed if it will work now as expected