Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
Hi fellas, I want all admins to have the same name colour when they are online (blue)
if(!IsPlayerLuxAdminLevel(playerid, 1))
{
SetPlayerColor(playerid,blue);
}
Its not working. I have this under OnPlayerConnect
What am I missing?
Thanks!
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
Do you have any other SetPlayerColor in your script?
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
Just this under onplayerconnect
SetPlayerColor(playerid, PlayerColors[playerid]);
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
You have to set admins color after they log in and get their admin status. Nobody is admin in OnPlayerConnect.
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
So under onplayerspawn?
EDIT
nope thats not it, I get the same error 010 on this line
if(!IsPlayerLuxAdminLevel(playerid, 1))
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
You're getting an error? Show the whole code.
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
It's inside OnPlayerSpawn?
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
No...damn it!
Still just random colour!
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
I'll be damned, it works! Thank you very much!
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
Ahh damn there was one more thing!
Now, every admin is blue, all well and good
But lets say I want to have different colour for admin level 10? Is that possible, or will it mess everything up?
Or can I just copy but change level to 10 instead of 1?
Posts: 34
Threads: 7
Joined: Aug 2011
Reputation:
0
Ahh yes of course! Im getting so rusty. Thank you again!!