27.03.2011, 09:08
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == PoliceCar1 || GetPlayerVehicleID(playerid) == PoliceCar2 ||
GetPlayerVehicleID(playerid) == PoliceCar3 || GetPlayerVehicleID(playerid) == PoliceCar4 ||
GetPlayerVehicleID(playerid) == PoliceCar5 || GetPlayerVehicleID(playerid) == PoliceCar6 ||
GetPlayerVehicleID(playerid) == PoliceCar7 || GetPlayerVehicleID(playerid) == PoliceCar8 ||
GetPlayerVehicleID(playerid) == PoliceCar9 || GetPlayerVehicleID(playerid) == PoliceCar10 ||
GetPlayerVehicleID(playerid) == PoliceCar11 || GetPlayerVehicleID(playerid) == PoliceCar12 ||
GetPlayerVehicleID(playerid) == PoliceCar13 || GetPlayerVehicleID(playerid) == PoliceCar14 ||
GetPlayerVehicleID(playerid) == PoliceCar15)
{
if(GetPlayerTeam(playerid) != TEAM_COP || GetPlayerTeam(playerid) != TEAM_ARMY)
{
SendClientMessage(playerid,0xA0A0A0FF,"[[_Law Enforcement Vehicle Theft_]]");
SendClientMessage(playerid,0xEB0000FF,"You have stolen a Law Enforcement Vehicle. The police has been informed, watch out ..");
SetPlayerWantedLevel(playerid, 4);
return 1;
}
}
}
return 1;
}