SetTimerEx(\"DelayedKick\", 200, false, \"i\", playerid);
//ez pedig mehet a mód végéreforward DelayedKick(playerid);public DelayedKick(playerid){ Kick(playerid); return 1;}
dcmd_kick(playerid,params[]) {if(PlayerInfo[playerid][LoggedIn] == 1) { if(PlayerInfo[playerid][Level] >= 6) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /kick [playerid] [indok]\"); new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128]; player1 = strval(tmp); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid && (PlayerInfo[player1][Level] != ServerInfo[MaxAdminLevel]) ) { GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname)); CMDMessageToAdmins(playerid,\"KICK\"); // format(string,sizeof(string),\"Kickelve lettél!\\nIndok: %s\\nAdmin: %s által\\nSzintje: %d.\",tmp2,adminname,PlayerInfo[playerid][Level]); ShowPlayerDialog(player1,0,DIALOG_STYLE_MSGBOX,\"{FF0000}Kick\",string,\"Oké\",\"\"); // if(!strlen(tmp2)) { format(string,sizeof(string),\"%s kilett Kickelve admin: %s által!\",playername,adminname); SendClientMessageToAll(0xFFFF00AA,string); SaveToFile(\"KickLog\",string); print(string); return Kick(player1); } else { format(string,sizeof(string),\"%s kilett Kickelve admin %s által! [Megj.: %s] \",playername,adminname,params[2]); SendClientMessageToAll(0xFFFF00AA,string); SaveToFile(\"KickLog\",string); print(string); return Kick(player1); } } else return SendClientMessage(playerid, red, \"A játékos nincs csatlakozva, vagy magadat akartad, vagy magasabb szintű az admint!\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintű adminnak kéne lenned!\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 6-os szintű adminnak kéne lenned!\");}
dcmd_kick(playerid,params[]) {if(PlayerInfo[playerid][LoggedIn] == 1) { if(PlayerInfo[playerid][Level] >= 6) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /kick [playerid] [indok]\"); new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128]; player1 = strval(tmp); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid && (PlayerInfo[player1][Level] != ServerInfo[MaxAdminLevel]) ) { GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname)); CMDMessageToAdmins(playerid,\"KICK\"); // format(string,sizeof(string),\"Kickelve lettél!\\nIndok: %s\\nAdmin: %s által\\nSzintje: %d.\",tmp2,adminname,PlayerInfo[playerid][Level]); ShowPlayerDialog(player1,0,DIALOG_STYLE_MSGBOX,\"{FF0000}Kick\",string,\"Oké\",\"\"); // if(!strlen(tmp2)) { format(string,sizeof(string),\"%s kilett Kickelve admin: %s által!\",playername,adminname); SendClientMessageToAll(0xFFFF00AA,string); SaveToFile(\"KickLog\",string); print(string); return SetTimerEx(\"DelayedKick\", 200, false, \"i\", playerid); } else { format(string,sizeof(string),\"%s kilett Kickelve admin %s által! [Megj.: %s] \",playername,adminname,params[2]); SendClientMessageToAll(0xFFFF00AA,string); SaveToFile(\"KickLog\",string); print(string); return SetTimerEx(\"DelayedKick\", 200, false, \"i\", playerid); } } else return SendClientMessage(playerid, red, \"A játékos nincs csatlakozva, vagy magadat akartad, vagy magasabb szintű az admint!\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintű adminnak kéne lenned!\");} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 6-os szintű adminnak kéne lenned!\");}//ez pedig mehet a mód végéreforward DelayedKick(playerid);public DelayedKick(playerid){ Kick(playerid); return 1;}
SaveToFile(\"KickLog\",string); print(string); return