SetPlayerScore
#4

Quote:
Originally Posted by efrim123
Посмотреть сообщение
Post your code please of the command and if you want it to take from the player score do this

pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) - 20);
Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
To remove their score:
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) - 20);
To save their HP:
pawn Код:
new Float: HP[2]; // Global or something

// when they use the cmd:
GetPlayerHealth(playerid, HP[0]);
GetPlayerArmour(playerid, HP[1]);

SetPlayerHealth(playerid, 99999999);
// when you want to give their health back
SetPlayerHealth(playerid, HP[0]);
SetPlayerArmour(playerid, HP[1]);
Thanks both , was really helpfull.
Reply


Messages In This Thread
SetPlayerScore - by CesarLT - 06.10.2013, 20:00
Re: SetPlayerScore - by efrim123 - 06.10.2013, 20:03
Re: SetPlayerScore - by -Prodigy- - 06.10.2013, 20:04
Re: SetPlayerScore - by CesarLT - 06.10.2013, 20:12
Re: SetPlayerScore - by AnonScripter - 06.10.2013, 22:29
Re: SetPlayerScore - by EiresJason - 06.10.2013, 22:31

Forum Jump:


Users browsing this thread: 1 Guest(s)