dcmd_warn(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,\"ERROR: You cannot use this command on this admin\"); 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(grey, 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, str); } } else return SendClientMessage(playerid, red, \"HIBA: Magadot 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: /unwarn [playerid] [indok]\"); new warned = strval(tmp), str[128];if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"ERROR: You cannot use this command on this admin\"); 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\\\" elvette \\\"%s\\\" figyelmeztetés {33FF33}(Indok: %s) (%d/%d)<<\", pName(playerid), pName(warned), params[1+strlen(tmp)], PlayerInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(grey, str); SaveToFile(\"KickLog\",str); Kick(warned); return PlayerInfo[warned][Warnings] = 0; } else { format(str, sizeof (str), \">> Adminisztrátor \\\"%s\\\" elvette \\\"%s\\\" figyelmezteté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: Magadnak nem veheted el a figyelmeztetéseket\");} 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!\");}
new figyelmeztetesek[60];dcmd_warn(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,\"ERROR: You cannot use this command on this admin\"); 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(grey, 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, str); format(figyelmeztetesek, sizeof(figyelmeztetesek), \"Figyelmeztettek/%s.ini\", pName(warned)); if(!dini_Exists(figyelmeztetesek)) { dini_Create(figyelmeztetesek); dini_IntSet(figyelmeztetesek, \"Figyelmeztetések\", PlayerInfo[warned][Warnings]); } } } else return SendClientMessage(playerid, red, \"HIBA: Magadot 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!\");}