08.07.2009, 17:34
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
}
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetVehicleParamsForPlayer(vehicleid,i,0,0);
}
return 1;
}