Color saving? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Color saving? (
/showthread.php?tid=79429)
Color saving? -
Gamer007 - 28.05.2009
How can i save playercolor when he dies and then give him the color when he spawns cuz i do a color_grey or him and i want him to have his color back when he spawns
Re: Color saving? -
farse - 28.05.2009
Put at the beginning script:
At OnPlayerDeath:
pawn Код:
pcolor =GetPlayerColor(playerid);
And at OnPlayerSpawn:
Re: Color saving? -
Djiango - 28.05.2009
Quote:
Originally Posted by BeckzyBoi
- GetPlayerColor - Returns 0 unless SetPlayerColor has been used
|
Re: Color saving? -
SpiderPork - 28.05.2009
If he uses SetPlayerColor first, then I guess it's ok.