SA-MP Forums Archive
save color - 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: save color (/showthread.php?tid=424377)



save color - Fernado Samuel - 21.03.2013

Removed


Re: save color - Joshman543 - 21.03.2013

Create a new function like:

Color[playerid]
And add SetPlayerColor(playerid, Color[playerid]); to OnPlayerConnect


Re: save color - Fernado Samuel - 21.03.2013

Removede?


Re: save color - Konstantinos - 21.03.2013

In OnPlayerDisconnect callback, get player's color
pawn Код:
GetPlayerColor(playerid)
and save it to your already existed register/login system. In OnPlayerConnect callback, let them login and then
pawn Код:
SetPlayerColor(playerid, load_the_color_and_set_it);
PS: I never had problems like resetting my color on player's death.