Help With Colors - 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: Help With Colors (
/showthread.php?tid=130494)
Help With Colors -
hab2ever - 27.02.2010
Hey Guys
how to onplayerspawn set color red only for admins?
i use ladmin4v2
Sorry For My Bad English,...
Re: Help With Colors -
[HiC]TheKiller - 27.02.2010
https://sampwiki.blast.hk/wiki/SetPlayerColor
Re: Help With Colors -
Jeffry - 27.02.2010
pawn Код:
if (dUserINT(PlayerName2(playerid)).("level") >= 1)
{
SetPlayerColor(playerid, 0xFF0000AA);
}
But there is a sa-mp bug. Only the others can see you as red. Yourself not. May fix it when you put it under OnPlayerSpawn.
Re: Help With Colors -
bajskorv123 - 27.02.2010
pawn Код:
//Somewhere under OnPlayerSpawn
if(PlayerInfo[playerid][Level] > 0)
{
SetPlayerColor(playerid, 0xFF0000AA);
}
EDIT: Jeffry
Re: Help With Colors -
Jeffry - 27.02.2010
Both works.