What's wrong?
#6

top of the script :
pawn Code:
new gClassid[MAX_PLAYERS];
under OnPlayerRequestClass :
pawn Code:
gClassid[playerid] = classid;
then use :
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
       if(gClassid[playerid] == 106)
       {
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 416)
            {
                SetPlayerWantedLevel(playerid,4);
                SendClientMessageToAll(RED,"%s has stolen a police car");
                SetPlayerColor(playerid,RED);
            }
        }
    }
    return 1;
}
P.S : But u better use SetPlayerTeam or gTeam instead of class ids
Reply


Messages In This Thread
What's wrong? - by Cjgogo - 25.04.2011, 08:50
Re: What's wrong? - by xir - 25.04.2011, 09:00
Re: What's wrong? - by [JnA]DukeNukem - 25.04.2011, 09:03
Re: What's wrong? - by Cjgogo - 25.04.2011, 09:03
Re: What's wrong? - by xir - 25.04.2011, 09:03
Re: What's wrong? - by aircombat - 25.04.2011, 09:46

Forum Jump:


Users browsing this thread: 2 Guest(s)