SetPlayerMarkerForPlayer | NPC's
#10

the function is pretty clear...
PHP код:
stock CheckPlayerColor(playerid)
{
    if(!
IsPlayerNPC(playerid))
    {
        if(
GetPlayerSkin(playerid) == BANDIT)
        {
            
SetPlayerColor(playerid,COLOR_RED);
        }
        if(
GetPlayerSkin(playerid) == HERO)
        {
            
SetPlayerColor(playerid,COLOR_BLUE);
        }
        if(
GetPlayerSkin(playerid) == NORMAL)
        {
            
SetPlayerColor(playerid,COLOR_WHITE);
        }
        if(
GetPlayerSkin(playerid) == FEMALE)
        {
            
SetPlayerColor(playerid,COLOR_PINK);
        }
        if(
GetPlayerSkin(playerid) == CIV)
        {
            
SetPlayerColor(playerid,COLOR_BROWN);
        }
        if(
GetPlayerSkin(playerid) == CIVSKIN)
        {
            
SetPlayerColor(playerid,0x19197000);
        }
        if(
GetPlayerSkin(playerid) == SNIP)
        {
            
SetPlayerColor(playerid,0xADFF2F00);
        }
    }
    return 
1;

@NaS: FCNPC, and nope still doesnt work.
Reply


Messages In This Thread
SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 12:59
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:05
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:13
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:19
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:25
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:29
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:36
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:41
Re: SetPlayerMarkerForPlayer | NPC's - by NaS - 28.07.2017, 15:12
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 15:20

Forum Jump:


Users browsing this thread: 5 Guest(s)