22.05.2013, 16:20
Hey guys, I have a little bug in my server
When I do any command ingame it says altime that I am in a punishment but I don't.. And it can't be because I didn't add my admin sys in my server for some reasons.
This is one of the commands:
So I dont know what I do wrong.. I hope anyone can help me out x)
Thanks
When I do any command ingame it says altime that I am in a punishment but I don't.. And it can't be because I didn't add my admin sys in my server for some reasons.
This is one of the commands:
pawn Код:
CMD:kill(playerid, params[])
{
if(IsCaged[playerid] == 1 || IsJailed[playerid] == 1|| IsFreezed[playerid] == 1)
{
SendClientMessage(playerid, -1, ""red"You are currently in your punishment... You must be wait to use any command!");
}
SetPlayerHealth(playerid, 0);
GameTextForPlayer(playerid, "~r~KILLED!",2000,5);
InMinigame[playerid] = 1;
IsCaged[playerid] = 1;
IsJailed[playerid] = 1;
IsFreezed[playerid] = 1;
return 1;
}
PHP код:
new IsCaged[MAX_PLAYERS];
new IsJailed[MAX_PLAYERS];
new IsFreezed[MAX_PLAYERS];
new InMinigame[MAX_PLAYERS];
Thanks