LuK3Z 3 Odesláno: 10. Duben, 2013 Share Odesláno: 10. Duben, 2013 Ahoj chcu udělat kick pro adminy nevíte jak to udělat ? Link to comment Share on other sites More sharing options...
0 DJ_Oli22 0 Odesláno: 10. Duben, 2013 Share Odesláno: 10. Duben, 2013 Hmm tak skus toto #define QCMD:%1() \ forward cmd_%1(playerid,params[],bool:help); \ public cmd_%1(playerid,params[],bool:help) QCMD:kick(){ new id,dovod[50]; if(sscanf(params,"iz",id,dovod)) return SendClientMessage(playerid,-1,"Použi: /kick [iD] [dôvod]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Hráč nieje na servery !"); if(isPlayerAdmin[id]) return SCM(playerid,-1,"Nemôžeš kicknuť admina !"); printf("Administrátor %s kickol hráča %s [ Dôvod: %s ]",Jmeno(playerid),Jmeno(id),dovod); Kick(id); return true; } Ak som pomohol daj +REP pls Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 10. Duben, 2013 Author Share Odesláno: 10. Duben, 2013 Ale potřebuji to pres dialog Link to comment Share on other sites More sharing options...
0 DJ_Oli22 0 Odesláno: 10. Duben, 2013 Share Odesláno: 10. Duben, 2013 tak potom takto #define DIALOG_KICK 1 public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kick", cmdtext, true, 4) == 0) { ShowPlayerDialog(playerid, DIALOG_KICK, DIALOG_STYLE_INPUT, "{FF0000}Kicknúť Hráča", "Vyber ID hráča", "Kick", "Zavriet"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_KICK) { if(!response) return 0; if(!IsPlayerConnected(strval(inputtext))) return SendClientMessage(playerid, -1, "Zle ID hraca"); new aN[128], str[128], pN[128]; GetPlayerName(playerid, aN, sizeof(aN)), GetPlayerName(strval(inputtext), pN, sizeof(pN)); format(str, sizeof(str), "%s Bol vyhodený adminom %s", pN, aN); SendClientMessageToAll(-1, str); Kick(strval(inputtext)); return 1; } } Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Nevím jak tam mám přidat důvod Prosím napiš mi to aji s důvodem Prosím o odepsání Tak mi poradíte ? Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 1, Kick už je na RCON 2, Jednoduše Kick(playerid) Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 No ale jak mám udělat důvod do toho dialogu Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 Tak ti to napíšu no Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Děkuji Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 Ceky Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Ale to není kick to jsou barvy Napíšeš mi to ? Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 Jo jo sem si totot spletl s jedním jiným Ale už to mám Do příkazu : ShowPlayerDialog(playerid,DIALOG_BARVY,DIALOG_STYLE_INPUT,"Kick","Kick","vybrat","Nic"); Potom do OnDialotResponse public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_BARVY) { if(response == 1) { new idx = strval(inputtext); Kick(idx); } } return 1; } Netestoval jsem to takže nevím ale mělo by to býti tak že se mu otevře dialog a on napíše ID a ono to vyrazí to ID co napsal Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Potřebuji to s Duvodem Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 Kick s důvodem není jedině kdyby si mu napsal SendClientMessage(playerid,COLOR,"Byl jsi vyhozen!"); Ale to by se asi nestihlo vypsat jedině to dát i s timer Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Já viděl s důvodem takže to musí jít Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 11. Duben, 2013 Share Odesláno: 11. Duben, 2013 Tak to nevím vím že ban jde BanEx ale nevím o tom že by šel i Kick Link to comment Share on other sites More sharing options...
0 LuK3Z 3 Odesláno: 11. Duben, 2013 Author Share Odesláno: 11. Duben, 2013 Tak mi tu napiš Ban s duvodem prosím to mi stačí Link to comment Share on other sites More sharing options...
Dotaz
LuK3Z 3
Ahoj chcu udělat kick pro adminy nevíte jak to udělat ?
Link to comment
Share on other sites
16 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now