15.01.2011, 05:18
How can I transform this instead of just one Ambulance, It does it for every one spawned ever?
Код:
new ambulance; ambulance = AddStaticVehicle(cords...)
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new veh = GetPlayerVehicleID(playerid); new pskin=GetPlayerSkin(playerid); if(pskin != 275 || pskin != 276 && veh == ambulance) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0x00FF00AA, "This vehicle is only for Medics!"); return 1; } return 1; }