getplayerhealth
#4

pawn Код:
new Float:gArmour[MAX_PLAYERS];// add this two lines near your global variables declaration(under one of your enums).  
new Float:gHealth[MAX_PLAYERS];



CMD:stunt(playerid, params[])
{
new name[24], string[56];
GetPlayerArmour(playerid, gArmour[playerid]);
GetPlayerHealth(playerid, gHealth[playerid]);
SetPlayerHealth(playerid,100000);
SetPlayerArmour(playerid,100000);

CMD:dm(playerid, params[])
{
new name[24], string[56];
SetPlayerArmour(playerid, gArmour[playerid]);
SetPlayerHealth(playerid, gHealth[playerid]);
This should work.
Reply


Messages In This Thread
getplayerhealth - by Horrible - 12.07.2011, 12:42
Re: getplayerhealth - by Edvin - 12.07.2011, 12:56
Re: getplayerhealth - by Horrible - 12.07.2011, 13:05
Re: getplayerhealth - by Roko_foko - 12.07.2011, 13:05
Re: getplayerhealth - by Horrible - 12.07.2011, 13:42

Forum Jump:


Users browsing this thread: 2 Guest(s)