How does these Stock functions works?
#7

I got easier idea. If player steals an car then my code will set his wanted level 1 so heres my code:
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(PlayerCivilian == 1)
        {
            if(GetPlayerWantedLevel(playerid) == 0)
            {
                new string[50];
                format(string,sizeof(string),"~r~You are committing crime", playerid);
                GameTextForPlayer(playerid,string,3000,4);
                SendClientMessage(playerid,COLOR_RED,"[CRIME]: Car jacking, you are now wanted with this car.");
                SetPlayerWantedLevel(playerid,1);
                SetPVarInt(playerid,"Timer",SetTimerEx("WantedLevelDown",30000,1,"i",playerid));
            }
        }
    }

    return 1;
}
And i just can add this code here,
pawn Код:
SetPlayerColor(playerid,COLOR_YELLOW);
Sould work but my "PlayerCivilian" is with white color or i guess i just make another team as "PlayerCriminal" with yellow color and in that code i make him PlayerCivilian = 0; and PlayerCriminal = 1; so he gets player Criminal color too, not sure... :P
Reply


Messages In This Thread
How does these Stock functions works? - by tuuker - 01.03.2011, 17:53
Re: How does these Stock functions works? - by JaTochNietDan - 01.03.2011, 17:55
Re: How does these Stock functions works? - by tuuker - 01.03.2011, 18:01
Re: How does these Stock functions works? - by JaTochNietDan - 01.03.2011, 18:09
Re: How does these Stock functions works? - by Tony_Montana - 01.03.2011, 18:11
Re: How does these Stock functions works? - by JaTochNietDan - 01.03.2011, 18:13
Re: How does these Stock functions works? - by tuuker - 01.03.2011, 18:29
Re: How does these Stock functions works? - by JaTochNietDan - 01.03.2011, 18:31
Re: How does these Stock functions works? - by tuuker - 01.03.2011, 18:35
Re: How does these Stock functions works? - by JaTochNietDan - 01.03.2011, 19:55

Forum Jump:


Users browsing this thread: 4 Guest(s)