Help With Colors
#1

Hey Guys
how to onplayerspawn set color red only for admins?
i use ladmin4v2

Sorry For My Bad English,...
Reply
#2

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

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.
Reply
#4

pawn Код:
//Somewhere under OnPlayerSpawn
if(PlayerInfo[playerid][Level] > 0)
{
  SetPlayerColor(playerid, 0xFF0000AA);
}
EDIT: Jeffry
Reply
#5

Both works.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)