Anti killing in jail? - 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)
+--- Thread: Anti killing in jail? (
/showthread.php?tid=410142)
Anti killing in jail? -
Sellize - 24.01.2013
How do i make it so that whenever players (Info[ID][isJailed] is 1, they wont be able to damage anyone else in jail?
Re: Anti killing in jail? -
B-Matt - 24.01.2013
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(Info[playerid][isJailed] == 1)
{
SetPlayerHealth(playerid, 100.0); //Reheal him back to 100HP (you can change it
}
return 1;
}
Try this code...