01.01.2011, 12:21
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 522)//vehcile model id. :D
{
DestroyVehicle(vehicleid);
//bla bla
}
}
return 1;
}