02.05.2013, 04:18
Try this
Put this on your /kill command before it sets the players health to 0:
Then put this under where it cages the player:
And put this under anywhere that it uncages the player:
Put this on your /kill command before it sets the players health to 0:
pawn Код:
if(GetPVarInt(playerid,"iscaged") == 1) return SendClientMessage(playerid, 0xB90004FF, "You are caged. You cannot kill yourself.");
pawn Код:
SetPVarInt(player,"iscaged",1[player]);
pawn Код:
SetPVarInt(player,"iscaged",0[player]);