PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Dobrý den ..Potreboval bych /admins ale pres dialog aby se to ukazovalo v Dialogu ..Mohl by mi sem nekdo hodit kod diky )) Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Celý ten public OnPlayerCommandText vymaž od jeho začiatku až po koniec a daj tam toto: public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } if (!strcmp("/setlevel", cmdtext, true, 9)) { HracoveInformacie[playerid][hAdminLevel] = 1; return 1; } return 0; } Dal sem to tam takto ... http://www.nahraj-obrazek.cz/?di=1214033593585 A vypsalo to toto.. http://www.nahraj-obrazek.cz/?di=214033594670 Dal sem to tam takto ... http://www.nahraj-obrazek.cz/?di=1214033593585 A vypsalo to toto.. http://www.nahraj-obrazek.cz/?di=214033594670 Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Panebože, povedal som zmazať len ten public, a nie všetko. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Panebože, povedal som zmazať len ten public, a nie všetko. Omlouvám se ( Toto ? http://www.nahraj-obrazek.cz/?di=1314033600149 Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Áno to, až do konca. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Áno to, až do konca. ...Nwm jesli to delam blbe http://www.nahraj-obrazek.cz/?di=114033607819 a pk errors ... http://www.nahraj-obrazek.cz/?di=3140336080616 ...Nwm jesli to delam blbe http://www.nahraj-obrazek.cz/?di=114033607819 a pk errors ... http://www.nahraj-obrazek.cz/?di=3140336080616 Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Kde je OnPlayerCommandText ? :d Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Kde je OnPlayerCommandText ? :d Nechces mi to hodit do amx prosimte :.Vubec nwm :/( Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Pošli mi to do PM Skype mi blbne :/ Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 #include a_samp #include zcmd #include sscanf #define p playerid #define SCM SendClientMessage new AdminLevel[MAX_PLAYERS]; SPName(p) { new n[MAX_PLAYER_NAME+1] if(IsPlayerConnected(p) && !IsPlayerNPC(p)) GetPlayerName(p, n, MAX_PLAYER_NAME); return 1; } public OnPlayerConnect(p) { AdminLevel[p] = 0; //Pro jistotu return 1; } command(setalvl, p, params[]) { if(!IsPlayerAdmin(p)) SCM(p, -1, "[ ! ] Nejste RCON Administrátor ! Přihlašte se pomocí /rcon login [HESLO] !"); new id,lvl,s[128]; if(sscanf(params, "ui", id, lvl)) return SCM(p, -1, "[ ! ] Špatně zadaný příkaz: /setlvl [ID/Jméno hráče] [Level]"); if(id == INVALID_PLAYER_ID) return SCM(p, -1, "[ ! ] Hráč není připojený !"); if(lvl < 0 || lvl > 5) SCM(p, -1, "[ ! ] Maximálně level 0-5 !"); format(s,sizeof(s), "{FF0000}Administrátor %s nastavil hráči %s AdminLevel %i", SPName(p), SPName(id), lvl); SendClientMesageToAll(-1, s); AdminLevel[id] = lvl; return 1; } command(admins, p, params[]) { #pragma unused params new online = 0,s[1000]; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && AdminLevel[i] > 0) { format(s,sizeof(s),"%s\n%s [Level:%i]", s, SPName(i), AdminLevel[i]); online++; } } if(online == 0) SCM(p, -1, "[ ! ] Není online žádný Administrátor !"); else ShowPlayerDialog(p, 1000, DIALOG_STYLE_MSGBOX, "Admins", s, "Zavrit", ""); return 1; } /* Include zcmd: http://forum.sa-mp.com/showthread.php?t=91354 Include sscanf: http://forum.sa-mp.com/showthread.php?t=120356 */ Problem ? Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 #include a_samp #include zcmd #include sscanf #define p playerid #define SCM SendClientMessage new AdminLevel[MAX_PLAYERS]; SPName(p) { new n[MAX_PLAYER_NAME+1] if(IsPlayerConnected(p) && !IsPlayerNPC(p)) GetPlayerName(p, n, MAX_PLAYER_NAME); return 1; } public OnPlayerConnect(p) { AdminLevel[p] = 0; //Pro jistotu return 1; } command(setalvl, p, params[]) { if(!IsPlayerAdmin(p)) SCM(p, -1, "[ ! ] Nejste RCON Administrátor ! Přihlašte se pomocí /rcon login [HESLO] !"); new id,lvl,s[128]; if(sscanf(params, "ui", id, lvl)) return SCM(p, -1, "[ ! ] Špatně zadaný příkaz: /setlvl [ID/Jméno hráče] [Level]"); if(id == INVALID_PLAYER_ID) return SCM(p, -1, "[ ! ] Hráč není připojený !"); if(lvl < 0 || lvl > 5) SCM(p, -1, "[ ! ] Maximálně level 0-5 !"); format(s,sizeof(s), "{FF0000}Administrátor %s nastavil hráči %s AdminLevel %i", SPName(p), SPName(id), lvl); SendClientMesageToAll(-1, s); AdminLevel[id] = lvl; return 1; } command(admins, p, params[]) { #pragma unused params new online = 0,s[1000]; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && AdminLevel[i] > 0) { format(s,sizeof(s),"%s\n%s [Level:%i]", s, SPName(i), AdminLevel[i]); online++; } } if(online == 0) SCM(p, -1, "[ ! ] Není online žádný Administrátor !"); else ShowPlayerDialog(p, 1000, DIALOG_STYLE_MSGBOX, "Admins", s, "Zavrit", ""); return 1; } /* Include zcmd: http://forum.sa-mp.com/showthread.php?t=91354 Include sscanf: http://forum.sa-mp.com/showthread.php?t=120356 */ Problem ? Ano error http://www.nahraj-obrazek.cz/?di=1214034167991 Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Definuj si SendClientMessageToAll .. Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Definuj si SendClientMessageToAll .. Proč? SCMTA (se 2 s) je už v a_sampu. Jedině, co si tak může definovat, je zkratka od toho. Ano error http://www.nahraj-obrazek.cz/?di=1214034167991 Na 12. řádků udělej tohodle: n[MAX_PLAYERS_EX] tohle( přidej ; ): n[MAX_PLAYERS_EX];A na 36. udělej ze: SendClientMesageToAll tohle: SendClientMesaageToAll Není ani divu, že tam byly chybičky. Dělala jsem to v půlnoci, a v bloku, protože ještě se nedostanu k PC, kde mám Pawno (spíše se divím, že je správně to tabování )... Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 Proč? SCMTA (se 2 s) je už v a_sampu. Jedině, co si tak může definovat, je zkratka od toho. Na 12. řádků udělej tohodle: n[MAX_PLAYERS_EX] tohle( přidej ; ): n[MAX_PLAYERS_EX];A na 36. udělej ze: SendClientMesageToAll tohle: SendClientMesaageToAll Není ani divu, že tam byly chybičky. Dělala jsem to v půlnoci, a v bloku, protože ještě se nedostanu k PC, kde mám Pawno (spíše se divím, že je správně to tabování )... Uděláno ZDE----> http://www.nahraj-obrazek.cz/?di=814034184262 Ale hodilo Error zde ! ---> http://www.nahraj-obrazek.cz/?di=11140341845413 Já se v páwnu moc nevyznam proto bych byl rad kdyby mi stím pomohl někdo Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Proč? SCMTA (se 2 s) je už v a_sampu. Jedině, co si tak může definovat, je zkratka od toho. Na 12. řádků udělej tohodle: n[MAX_PLAYERS_EX] tohle( přidej ; ):n[MAX_PLAYERS_EX]; A na 36. udělej ze: SendClientMesageToAll tohle: SendClientMesaageToAll Není ani divu, že tam byly chybičky. Dělala jsem to v půlnoci, a v bloku, protože ještě se nedostanu k PC, kde mám Pawno (spíše se divím, že je správně to tabování )... Uděláno ZDE----> http://www.nahraj-ob...di=814034184262 Ale hodilo Error zde ! ---> http://www.nahraj-ob...=11140341845413 Já se v páwnu moc nevyznam proto bych byl rad kdyby mi stím pomohl někdo Tam nema byt .. SendClienntMesaageToAll ... Nebo SendClientMesageToAll ...Proste to ma byt SendClientMessageToAll Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 . Proč nepíšeš středník tam, tak jsem ti řekla? A proč jsi najednou odstranil parametry z toho SCMTA?... #include a_samp #include zcmd #include sscanf #define p playerid #define SCM SendClientMessage new AdminLevel[MAX_PLAYERS]; SPName(p) { new n[MAX_PLAYER_NAME+1]; if(IsPlayerConnected(p) && !IsPlayerNPC(p)) GetPlayerName(p, n, MAX_PLAYER_NAME); return 1; } public OnPlayerConnect(p) { AdminLevel[p] = 0; //Pro jistotu return 1; } command(setalvl, p, params[]) { if(!IsPlayerAdmin(p)) SCM(p, -1, "[ ! ] Nejste RCON Administrátor ! Přihlašte se pomocí /rcon login [HESLO] !"); new id,lvl,s[128]; if(sscanf(params, "ui", id, lvl)) return SCM(p, -1, "[ ! ] Špatně zadaný příkaz: /setlvl [ID/Jméno hráče] [Level]"); if(id == INVALID_PLAYER_ID) return SCM(p, -1, "[ ! ] Hráč není připojený !"); if(lvl < 0 || lvl > 5) SCM(p, -1, "[ ! ] Maximálně level 0-5 !"); format(s,sizeof(s), "{FF0000}Administrátor %s nastavil hráči %s AdminLevel %i", SPName(p), SPName(id), lvl); SendClientMessageToAll(-1, s); AdminLevel[id] = lvl; return 1; } command(admins, p, params[]) { #pragma unused params new online = 0,s[1000]; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && AdminLevel[i] > 0) { format(s,sizeof(s),"%s\n%s [Level:%i]", s, SPName(i), AdminLevel[i]); online++; } } if(online == 0) SCM(p, -1, "[ ! ] Není online žádný Administrátor !"); else ShowPlayerDialog(p, 1000, DIALOG_STYLE_MSGBOX, "Admins", s, "Zavrit", ""); return 1; } Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Končene ! .. A teď jen či to pochopí. :D Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 Hale Ja se vtom oprqavdu nevyznam :DD... Link to comment Share on other sites More sharing options...
0 Uživatel 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Končene ! .. A teď jen či to pochopí. :d Končene ! ? Hale Ja se vtom oprqavdu nevyznam :DD... Tak, když to za tebe budou všichni psát, a ty se aspoň více častečně nesnažíš, tak pawn se nemusíš ani učit... Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Pekusis, on 22 Jun 2014 - 01:48, said: Končene ! .. A teď jen či to pochopí. :d Končene ! ? No jako konečne mu dal někdo navod jak na to mě se vubec nechce pawnit :D Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 Končene ! ? Tak, když to za tebe budou všichni psát, a ty se aspoň více častečně nesnažíš, tak pawn se nemusíš ani učit... :****** Děkuji ...Adrianko ..Du to vyzkoušet A jeste dotaz ...Jak udelat abych tam byl videt jako admin ? Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 /rcon login "HESLO" /setlvl ID [LVL ID] /savelvl ID Myslíš toto ? Jak si dat admina v hre ? Da se to i v hostingu v ScriptFiles .. Link to comment Share on other sites More sharing options...
0 Paulee 16 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 :****** Děkuji ...Adrianko ..Du to vyzkoušet A jeste dotaz ...Jak udelat abych tam byl videt jako admin ? To si to tam nastavíš.Jžš nauč se pawn a nedávej jsem ty příspěvky. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 22. Červen, 2014 Author Share Odesláno: 22. Červen, 2014 Ale ne to mam ale ono mi to pise ze Na serveru neni admin Link to comment Share on other sites More sharing options...
0 Pekusis 0 Odesláno: 22. Červen, 2014 Share Odesláno: 22. Červen, 2014 Tak asi to máš jen pro RCON :D Link to comment Share on other sites More sharing options...
Dotaz
PanRožokRohliik 1
Dobrý den ..Potreboval bych /admins ale pres dialog aby se to ukazovalo v Dialogu ..Mohl by mi sem nekdo hodit kod diky ))
Link to comment
Share on other sites
Top Posters For This Question
24
16
9
6
Popular Days
Jun 21
34
Jun 22
23
Aug 7
1
Top Posters For This Question
PanRožokRohliik 24 posts
Kubko 16 posts
Pekusis 9 posts
Uživatel 6 posts
Popular Days
Jun 21 2014
34 posts
Jun 22 2014
23 posts
Aug 7 2014
1 post
57 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