admincolor bugged when I rejoin
#1

Hey,


I have an command /admincolor that will change the nickname colour in the admin colour but it works 99%, when I do that, it sets it in the good color, but when I rejoin the server my nickname color have an wrong color, an black color but it must be yellow.

Whats wrong with that?
How can I fix that?

Ty,

Mickos
Reply
#2

Please copy the /admincolor command.
Reply
#3

Solved
Reply
#4

So your color isnt being set to yellow when you rejoin? You could try

SetPlayerColor(playerid,COLOR_HERE);

under OnPlayerConnect

Or is it the color you want saving? im a tad confused
Reply
#5

I want that it be saved, I have puted this one in OnPlayerSpawn

Quote:

if(PlayerAcc[playerid][UseColor] == 1)
{
SetPlayerColor(playerid, PlayerAcc[playerid][SaveColor]);

}

For my skin command that must be saved to, it works great but for the /admincolor command it is bugged, when I am dead, or rejoin my nickname isnt yellow anymore but black
Reply
#6

pawn Код:
PlayerAcc[playerid][SaveColor] = color;
color is defined but it is not defined to ANY value so it is empty.
pawn Код:
PlayerAcc[playerid][SaveColor] = COLOR_ADMIN;
This might be it.
Reply
#7

it works thank you man

+rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)