dcmd_warn(playerid,params[]){ if(AccInfo[playerid][Level] >= 2){ new Index; new tmp[256]; tmp = strtok(params,Index);new tmp2[256]; tmp2 = strtok(params,Index);new giveplayerid, giveplayername[MAX_PLAYER_NAME]; new name[MAX_PLAYER_NAME]; if(!strlen(tmp) || !strlen(tmp2)) returnSendClientMessage(playerid, red, \"Használat: /warn [Játékos ID] [indok]\") &&SendClientMessage(playerid, orange, \"Funkció: Figyelmeztetheted Vele a Játékost!\"); new warned = strval(tmp);new str[128];if(AccInfo[warned][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])return SendClientMessage(playerid,red,\"Hiba: Nem Vagy Elég Magas Szintû Admin!\"); if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) { if(warned != playerid) { SendCommandToAdmins(playerid,\"Warn\"); AccInfo[warned][Warnings]++; if( AccInfo[warned][Warnings] == MAX_WARNINGS) { GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername)); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00} %s kirúgta a szerverrõl %s-t!\",name,giveplayername); SendClientMessageToAll(COLOR_PURPLE,str); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00}Indok: {00FFFF}%s\", params[1+strlen(tmp)], AccInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(COLOR_PURPLE,str); SaveIn(\"KickLog\",str); Kick(warned); return AccInfo[warned][Warnings] = 0; } else { GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername)); format(str, sizeof (str), \"[ADMIN]: {00FFFF} \'\'%s\'\' {FFFF00}figyelmeztetésben részesítette õt: {00FF00}\'\'%s\'\' (%d/%d)\", giveplayername, name); SendClientMessageToAll(COLOR_PURPLE,str); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00}Indok: {00FFFF}%s\",params[1+strlen(tmp)], AccInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(COLOR_PURPLE,str); } } else return SendClientMessage(playerid, red, \"Hiba: Magadat Nemtudod Figyelmeztetni!\");}else return ErrorMessages(playerid, 2);}else return ErrorMessages(playerid, 1);return 1;}
if(warned != playerid)
dcmd_warn(playerid,params[]){ if(AccInfo[playerid][Level] >= 2) { new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new giveplayerid, giveplayername[MAX_PLAYER_NAME]; new name[MAX_PLAYER_NAME];if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, \"Használat: /warn [Játékos ID] [indok]\") && SendClientMessage(playerid, orange, \"Funkció: Figyelmeztetheted Vele a Játékost!\"); new warned = strval(tmp); new str[128]; if(AccInfo[warned][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"Hiba: Nem Vagy Elég Magas Szintû Admin!\"); if(IsPlayerConnected(warned) && warned != INVALID_PLAYER_ID) { SendCommandToAdmins(playerid,\"Warn\"); AccInfo[warned][Warnings]++; if( AccInfo[warned][Warnings] == MAX_WARNINGS) { GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername)); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00} %s kirúgta a szerverrõl %s-t!\",name,giveplayername); SendClientMessageToAll(COLOR_PURPLE,str); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00}Indok: {00FFFF}%s\", params[1+strlen(tmp)], AccInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(COLOR_PURPLE,str); SaveIn(\"KickLog\",str); Kick(warned); return AccInfo[warned][Warnings] = 0; } else { GetPlayerName(playerid,name,sizeof(name)); GetPlayerName(giveplayerid,giveplayername,sizeof(giveplayername)); format(str, sizeof (str), \"[ADMIN]: {00FFFF} \'\'%s\'\' {FFFF00}figyelmeztetésben részesítette õt: {00FF00}\'\'%s\'\' (%d/%d)\", giveplayername, name); SendClientMessageToAll(COLOR_PURPLE,str); format(str,sizeof(str),\"{FF0000}[ADMIN]:{00FF00}Indok: {00FFFF}%s\",params[1+strlen(tmp)], AccInfo[warned][Warnings], MAX_WARNINGS); SendClientMessageToAll(COLOR_PURPLE,str); } } else return ErrorMessages(playerid, 2); }else return ErrorMessages(playerid, 1);return 1;}