24.01.2013, 14:01
How do i make it so that whenever players (Info[ID][isJailed] is 1, they wont be able to damage anyone else in jail?
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;
}