a ban parancsnál megjeleníti a dialogot : DisplayKickBanText (giveplayerid, result[24]);
a dialog:stock DisplayKickBanText (giveplayerid, result){new nev[32];GetPlayerName(giveplayerid, nev, sizeof(nev));GetPlayerIp(giveplayerid,playersip,sizeof(playersip));format (string2, sizeof (string2), \"~y~Nev:~n~~w~%s~n~~y~Datum:~n~~w~%s~n~~y~Ido:~n~~w~%s~n~~y~\\IP:~n~~w~%s~n~~y~Indok:~n~~w~%s\"\\,nev , GetDateasd (), GetTimeasd (),playersip, result);TextDrawSetString (KickBanInfo, string2);TextDrawShowForPlayer (giveplayerid, KickBanInfo);}
//--------------------------------------[ban]----------------------------------------------------if(strcmp(cmd, \"/kitíltás\", true) == 0 || strcmp(cmd, \"/ban\", true) == 0 || strcmp(cmd, \"/bann\", true) == 0){ if(IsPlayerConnected(playerid)) { if(AdminJelszoMegadva[playerid] == 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,\"Használat: /kitíltás [JátékosID/NévRészlet] [indok]\"); return 1; } giveplayerid = ReturnUser(tmp); if (Admin(playerid, 2)) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pAdmin] < PlayerInfo[playerid][pAdmin]) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; //new string2[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,\"Használat: /kitíltás [JátékosID/NévRészlet] [indok]\"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), \"[bAN INFO] %s Bannolva lett a szerverről, Oka: %s (%d-%d-%d)\", giveplayer, (result),year,month,day); BanLog(string); format(string, sizeof(string), \"* %s bannolta %s Indok %s\",sendername, rag(giveplayer,3), (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); //format(string2, sizeof(string2), \"*-* Bannolva lettél %s által | Indok: %s *-*\", sendername, (result)); //SendClientMessage(giveplayerid, COLOR_ADMIN, string2); PlayerInfo[giveplayerid][pLocked] = 1; TogglePlayerControllable (giveplayerid, false); SetCameraBehindPlayer (giveplayerid); DisplayKickBanText (giveplayerid, result[24]); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d][ban] %s ki lett tíltva a szerverrő %s által | Indok: %s\",y,m,d,h,mi,s,rag(giveplayer,3), nev, (result)); LoOoG(stringx); HBan(giveplayerid); return 1; } else SendClientMessage(playerid,COLOR_GRAD2,\"Nagyobb admint vagy magadat nem bannolhatod!\"); } }//not connected } else { format(string, sizeof(string), \"%d Nem aktív játékos!\", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } else { SendClientMessage(playerid, COLOR_YELLOW,\"Amíg nem adod meg az adminjelszót, nem használhatod!\"); }}return 1;}
//--------------------------------------[ban]---------------------------------------------------- if(strcmp(cmd, \"/kitíltás\", true) == 0 || strcmp(cmd, \"/ban\", true) == 0 || strcmp(cmd, \"/bann\", true) == 0) { if(IsPlayerConnected(playerid)) { if(AdminJelszoMegadva[playerid] == 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,\"Használat: /kitíltás [JátékosID/NévRészlet] [indok]\"); return 1; } giveplayerid = ReturnUser(tmp); if (Admin(playerid, 2)) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pAdmin] < PlayerInfo[playerid][pAdmin]) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; //new string2[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid,COLOR_LIGHTBLUE,\"Használat: /kitíltás [JátékosID/NévRészlet] [indok]\"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), \"[bAN INFO] %s Bannolva lett a szerverről, Oka: %s (%d-%d-%d)\", giveplayer, (result),year,month,day); BanLog(string); format(string, sizeof(string), \"* %s bannolta %s Indok %s\",sendername, rag(giveplayer,3), (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); //format(string2, sizeof(string2), \"*-* Bannolva lettél %s által | Indok: %s *-*\", sendername, (result)); //SendClientMessage(giveplayerid, COLOR_ADMIN, string2); PlayerInfo[giveplayerid][pLocked] = 1; TogglePlayerControllable (giveplayerid, false); SetCameraBehindPlayer (giveplayerid); DisplayKickBanText (giveplayerid, (result)); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d][ban] %s ki lett tíltva a szerverrő %s által | Indok: %s\",y,m,d,h,mi,s,rag(giveplayer,3), nev, (result)); LoOoG(stringx); HBan(giveplayerid); return 1; } else { SendClientMessage(playerid,COLOR_GRAD2,\"Nagyobb admint vagy magadat nem bannolhatod!\"); } } }//not connected } else { format(string, sizeof(string), \"%d Nem aktív játékos!\", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } else { SendClientMessage(playerid, COLOR_YELLOW,\"Amíg nem adod meg az adminjelszót, nem használhatod!\"); } } return 1; }
stock DisplayKickBanText (giveplayerid, result)
stock DisplayKickBanText (giveplayerid, result[])