28.07.2017, 15:20
the function is pretty clear...
@NaS: FCNPC, and nope still doesnt work.
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;
}