Setting a player color.
#1

Lets say when someone does /duty, I want them to get the blue color for their nametag, how would I do so? What would I add and where? Thank you.
Reply
#2

pawn Код:
SetPlayerColor(playerid, COLOR_BLUE);
https://sampwiki.blast.hk/wiki/SetPlayerColor
Reply
#3

FIND, & Add SetPlayerColor(playerid, 0x00007CAA); to it.
pawn Код:
if (strcmp("/duty", cmdtext, true) == 0)
{
    SetPlayerColor(playerid, 0x00007CAA);
    return 1;
}
Reply
#4

Just copy paste this.....add under OnPlayerCommandText....copy the if code
Код:
public OnPlayerCommandText(playerid, cmdtext[]) // do not add this again if exists previously
{
	if (!strcmp("/duty", cmdtext, true, 5))
	{
		SetPlayerColor(playerid,0x0000FFFF);
		return 1;
	}
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)