Color saving?
#1

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
Reply
#2

Put at the beginning script:
pawn Код:
new pcolor;
At OnPlayerDeath:
pawn Код:
pcolor =GetPlayerColor(playerid);
And at OnPlayerSpawn:
pawn Код:
SetPlayerColor(pcolor);
Reply
#3

Quote:
Originally Posted by BeckzyBoi
  • GetPlayerColor - Returns 0 unless SetPlayerColor has been used
Reply
#4

If he uses SetPlayerColor first, then I guess it's ok.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)