Heeelp FAST
#1

How to make if player Have 2 Stars = Yellow?

Example

Код:
GetPlayerWanted(playerid, 0);
SetPlayerColor(playerid, COLOR_WHITE);

GetPlayerWanted(playerid, 2);
SetPlayerColor(playerid, COLOR_YELLOW);
How to make it ? FAST HELP PLESAE
Reply
#2

You just wrote part of the code.
Reply
#3

pawn Код:
if(GetPlayerWantedLevel(playerid) == 2){
                //Do This
}
Reply
#4

Hello, I meaing guyz To if someone got 2 stars His colour set to Yellow

I remember to Put Like that

Код:
public OnPlayerUpdate
GetPlayerWanted(playerid, 0);
SetPlayerColor(playerid, COLOR_WHITE);
Like that I mean guyz My Server is Cops And Robbers
Reply
#5

HEEEEELP ITS EASY JUST HELP ME!!!!

SETPLAYERSCOLOURS
Reply
#6

If you bothered to understand the code i wrote you'd know that it's all you need.... Here:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWantedLevel(playerid) == 2)
    {
        SetPlayerColor(playerid, 0xFFFF00);
        return 1;
    }
}
Reply
#7

Quote:
Originally Posted by mahdi499
Посмотреть сообщение
If you bothered to understand the code i wrote you'd know that it's all you need.... Here:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWantedLevel(playerid) == 2)
    {
        SetPlayerColor(playerid, 0xFFFF00);
        return 1;
    }
}
Horrible code. It only needs to be used when you give the player wanted level.
Reply
#8

Well i do have a cnr gamemode and i use this stock in my script.
PHP код:
SetPlayerWantedLevelEx(playeridlevel)
{
       switch(
level)
       {
            case 
0SetPlayerColor(playerid, -1);
            case 
1SetPlayerColor(playeridCOLOR_YELLOW);
            case 
2SetPlayerColor(playeridCOLOR_ORANGE);
            case 
3SetPlayerColor(playeridCOLOR_ORANGE);
            case 
4SetPlayerColor(playeridCOLOR_RED);
            case 
5SetPlayerColor(playeridCOLOR_DARKRED);
            default: 
SetPlayerColor(playeridCOLOR_DARKRED);
       }
       return 
SetPlayerWantedLevel(playeridlevel);

Example usage:
PHP код:
SetPlayerWantedLevelEx(playerid,2); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)