Quote:
|
Originally Posted by Niixie
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { if(vehicleid == cruiser1) { if(!gTeam[playerid] == TEAM_COP); { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_RED, "This vehicle belongs to the San Fierro Police Department."); } } } return 1; }
UNTESTED
How about that? donno if it would work
|
haha, you still forgot to remove the semi-colon xD ( ; )