22.04.2012, 21:28
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == 2) { new VehCheck = GetPlayerVehicleID(playerid); if(VehCheck == Cars[1] || VehCheck == Cars[2] || VehCheck == Cars[3] || VehCheck == Cars[4] || VehCheck == Cars[5] || VehCheck == Cars[6] || VehCheck == Cars[7] || VehCheck == Cars[8] || VehCheck == Cars[9]) { if(PlayerInfo[playerid][Team] = Civilian) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, -1, "You Don't have the keys for this car."); return 1; } else { return 1; } } return 1; } return 1; }