Player colours
#1

How do I make for example, a LSPD member have a blue name colour, and a Ballas Gangmember have purple.
The tutorials I've followed don't work.
I'm really new to scripting. Help.
Reply
#2

https://sampwiki.blast.hk/wiki/Function:SetPlayerColor
Reply
#3

That doesn't help me. How do I make it so that for example, when someone spawns as skin 105, they get player colour green?
Reply
#4

Use GetPlayerSkin, and control statements in the OnPlayerSpawn callback.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerSkin(playerid) == 105) SetPlayerColor(playerid, 0x7FFF00);
    return 1;
}
Reply
#5

hello

do @player spawn

if player join ballas then
SetPlayerColor(playerid,0x80008096);

like this example
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == Ballas)
    {
    SetPlayerColor(playerid,0x80008096);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)