Problem /setstat - 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: Problem /setstat (
/showthread.php?tid=145473)
Problem /setstat -
ShoBBy_RlZ - 02.05.2010
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);
}
Re: Problem /setstat -
johnnyc - 02.05.2010
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
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.