23.12.2009, 19:08
Put this in and tell me the errors
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;
}

