11.06.2009, 21:47
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.
SetPlayerColor(playerid, COLOR_BLUE);
if (strcmp("/duty", cmdtext, true) == 0)
{
SetPlayerColor(playerid, 0x00007CAA);
return 1;
}
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; }