admincolor bugged when I rejoin - 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)
+--- Thread: admincolor bugged when I rejoin (
/showthread.php?tid=441779)
admincolor bugged when I rejoin -
mickos - 04.06.2013
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
Re: admincolor bugged when I rejoin -
AdamCooper - 04.06.2013
Please copy the /admincolor command.
Re: admincolor bugged when I rejoin -
mickos - 04.06.2013
Solved
Re: admincolor bugged when I rejoin -
DobbysGamertag - 04.06.2013
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
Re: admincolor bugged when I rejoin -
mickos - 04.06.2013
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
Re: admincolor bugged when I rejoin -
Littlehelper - 04.06.2013
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.
Re: admincolor bugged when I rejoin -
mickos - 04.06.2013
it works thank you man
+rep