Anti killing in jail?
#1

How do i make it so that whenever players (Info[ID][isJailed] is 1, they wont be able to damage anyone else in jail?
Reply
#2

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)