if(strcmp(cmd, "/kill", true) == 0) { if(PlayerCuffed[playerid] > 0 || PlayerTied[playerid] > 0) { format(string, sizeof(string), "* %s starts to punch his own balls in an attempt to suicide, but instead pisses himself and starts crying.", PlayerRPName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3) // COMMENTED { SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !"); return 1; } if(PlayerJustDied[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !"); return 1; } SetPlayerHealth(playerid, 0); }
Код:
if(strcmp(cmd, "/kill", true) == 0) { if(PlayerCuffed[playerid] > 0 || PlayerTied[playerid] > 0) { format(string, sizeof(string), "* %s starts to punch his own balls in an attempt to suicide, but instead pisses himself and starts crying.", PlayerRPName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } if(PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3) // COMMENTED { SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !"); return 1; } if(PlayerJustDied[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY," You cannot do that at this time !"); return 1; } SetPlayerHealth(playerid, 0); } |