12.06.2009, 21:18
Hello,
If I use my disable kill only Cops can't use /kill in jail I know it's something with the gTeam but I don't know where to set it:
http://pastebin.com/m4f9d9ac8 (Jail Command)
And this is my disable /kill command
Top of script:
If player is jailed:
If I use my disable kill only Cops can't use /kill in jail I know it's something with the gTeam but I don't know where to set it:
http://pastebin.com/m4f9d9ac8 (Jail Command)
And this is my disable /kill command
pawn Код:
if(strcmp(cmd, "/kill", true) == 0)
{
if(IsJailed[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"You cannot kill yourself when jailed!");
SetPlayerHealth(playerid,0.0);
return 1;
}
Top of script:
pawn Код:
new IsJailed[MAX_PLAYERS];
If player is jailed:
pawn Код:
IsJailed[playerid] = 1;