Így? PlayerInfo[warned][Warnings]--;
PlayerInfo[warned][Warnings]--;
dcmd_unwarn(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, \"Használat: /warn [playerid] [indok]\"); new warned = strval(tmp), str[128]; if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) { if(warned != playerid) { PlayerInfo[warned][Warnings]--; if( PlayerInfo[warned][Warnings] == MAX_WARNINGS) { format(str, sizeof (str), \">> Adminisztrátor \\\"%s\\\" kirúgta \\\"%s\\\"-t.-t {33FF33}(Indok: %s) (%d/%d)<<\", pName(playerid), pName(warned), params[1+strlen(tmp)], PlayerInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(red, str); SaveToFile(\"KickLog\",str); Kick(warned); return PlayerInfo[warned][Warnings] = 0; } else { format(str, sizeof (str), \">> Adminisztrátor \\\"%s\\\" elvette a figyelmesztetését \\\"%s\\\"-t . {33FF33}(Indok: %s) (%d/%d) <<\", pName(playerid), pName(warned), params[1+strlen(tmp)], PlayerInfo[warned][Warnings], MAX_WARNINGS); return SendClientMessageToAll(yellow, str); } } else return SendClientMessage(playerid, red, \"HIBA: Magadat nem figyelmeztheted\"); } else return SendClientMessage(playerid, red, \"HIBA: Játékos nincs csatlakozva\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");}
dcmd_unwarn(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, \"Használat: /warn [playerid] [indok]\"); new warned = strval(tmp), str[128]; if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) { if(warned != playerid) { PlayerInfo[warned][Warnings]--; if( PlayerInfo[warned][Warnings] == MAX_WARNINGS) { format(str, sizeof (str), \">> Adminisztrátor \\\"%s\\\" kirúgta \\\"%s\\\"-t.-t {33FF33}(Indok: %s) (%d/%d)<<\", pName(playerid), pName(warned), params[1+strlen(tmp)], PlayerInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(red, str); SaveToFile(\"KickLog\",str); Kick(warned); return PlayerInfo[warned][Warnings] = 0; } else { format(str, sizeof (str), \">> Adminisztrátor \\\"%s\\\" figyelmeztette \\\"%s\\\"-t . {33FF33}(Indok: %s) (%d/%d) <<\", pName(playerid), pName(warned), params[1+strlen(tmp)], PlayerInfo[warned][Warnings], MAX_WARNINGS); return SendClientMessageToAll(yellow, dstr); } } else return SendClientMessage(playerid, red, \"HIBA: Magadat nem figyelmeztheted\"); } else return SendClientMessage(playerid, red, \"HIBA: Játékos nincs csatlakozva\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehhez a parancshoz legalább 2-es szintû adminnak kéne lenned!\"); }