Problem /setstat
#1

i have a problem... /setstat ID 2 don't word , this is spawn health...

i type /setstat 0 2 100 and doesen;'t work ..


Код:
					case 2:
							{
								PlayerInfo[giveplayerid][pSHealth] = amount;
								format(string, sizeof(string), "  The Player Was Set To %d Spawn Health Points", amount);
  								GetPlayerName(playur, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, 256, "News: %s has set %s's spawn health to %d.", sendername,giveplayer,amount);
								ABroadCast(COLOR_YELLOW,string,1);
							}
Reply
#2

Try this:
pawn Код:
case 2:
{
PlayerInfo[giveplayerid][pSHealth] = amount;
format(string, sizeof(string), "The Player Was Set To %d Spawnhealth ", amount);
}
after doing this try
Код:
/setstat ID 2 100
And the player will respawn with health 100
And by the way pSHealth means = Player Spawn Health so when he respawn he respawn with the health you set it to.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)