Neewbie needs help!
#8

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;
}
Reply


Messages In This Thread
Neewbie needs help! - by Antonio144 - 27.03.2011, 07:33
Re: Neewbie needs help! - by iJumbo - 27.03.2011, 07:41
Re: Neewbie needs help! - by Zh3r0 - 27.03.2011, 07:52
Re: Neewbie needs help! - by Antonio144 - 27.03.2011, 07:54
Re: Neewbie needs help! - by Antonio144 - 27.03.2011, 08:30
Re: Neewbie needs help! - by Zh3r0 - 27.03.2011, 08:59
Re: Neewbie needs help! - by Antonio144 - 27.03.2011, 09:06
Re: Neewbie needs help! - by HyperZ - 27.03.2011, 09:08
Re: Neewbie needs help! - by Zh3r0 - 27.03.2011, 09:08
Re: Neewbie needs help! - by armyoftwo - 27.03.2011, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)