SA-MP Forums Archive
HELP! SetPlayerDrunkLevel - fucked up - 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: HELP! SetPlayerDrunkLevel - fucked up (/showthread.php?tid=102784)



HELP! SetPlayerDrunkLevel - fucked up - Striker_Moe - 17.10.2009

Код:
public hpcheck(playerid)
{
 	if(GetPlayerHealth(playerid) < 15)
  {
  SetPlayerDrunkLevel(playerid, 3000);
	}
 	else if(GetPlayerHealth(playerid) < 18)
  {
  SetPlayerDrunkLevel(playerid, 10000);
	}

	return 1;
}
The server crashes then, why?



Re: HELP! SetPlayerDrunkLevel - fucked up - eminich - 17.10.2009

learn how to use callback functions https://sampwiki.blast.hk/wiki/GetPlayerHealth