SetPlayerColor for skin
#1

Ok so, I made this script for FBI skins. So everyone with a FBI skin gets a blue name. But, weird is, the players still get the random spawning colors. How can I fix this?

Код:
public OnPlayerSpawn(playerid)
{
new pskin = GetPlayerSkin(playerid);
if(pskin == 166 || pskin == 165 || pskin == 285 || pskin == 286 || pskin == 163 || pskin == 164)
{
SetPlayerColor(playerid, COLOR_BLUE);
return 1;
}
Reply
#2

This is FS? if yes put timer
pawn Код:
public OnPlayerSpawn(playerid)
{
    new pskin = GetPlayerSkin(playerid);
    SetTimerEx("FBI_Color",2000,false,"dd",playerid,pskin);
    return 1;
}

forward FBI_Color(p,s);
public FBI_Color(p,s)
{
    switch(s) {case 163..166,285,286: SetPlayerColor(p, COLOR_BLUE);}
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)