Setting a player color. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Setting a player color. (
/showthread.php?tid=81553)
Setting a player color. -
Devine - 11.06.2009
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.
Re: Setting a player color. -
JoeDaDude - 11.06.2009
pawn Код:
SetPlayerColor(playerid, COLOR_BLUE);
https://sampwiki.blast.hk/wiki/SetPlayerColor
Re: Setting a player color. -
Abernethy - 12.06.2009
FIND, & Add SetPlayerColor(playerid, 0x00007CAA); to it.
pawn Код:
if (strcmp("/duty", cmdtext, true) == 0)
{
SetPlayerColor(playerid, 0x00007CAA);
return 1;
}
Re: Setting a player color. -
abhinavdabral - 12.06.2009
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;
}