05.02.2012, 12:45
hey, heey!
you should pay attention to
so doing
will work 
heres a snippet of my /info command:
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
you should pay attention to
Quote:
|
Returns The ID of the vehicle... |
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)

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]);
}

