Fabricator 0 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 Sojte Akoby som spravil admins mam ho od Exisu na tabulkový? tu je cod CMD:admins(playerid, params[]) { if(AdminsOnline() == 0) return MLMSvitz(playerid, "Na serveri nieje pritomny ziadny Administrator."); SendClientMessage(playerid, B_SVITIVA, "Administratori On-line"); new string[60]; for(new i=0;i<=MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i) && Informace[i][AdminLevel] == 0) { format(string, 60, "[ On-line ] %s | [ RCON ]",Jmeno(i)); SystemMessage(playerid,string); } else if(Informace[i][AdminLevel] > 0 && !IsPlayerAdmin(i)) { format(string, 60, "[ On-line ] %s | [ LVL %d ]",Jmeno(i),Informace[i][AdminLevel]); SystemMessage(playerid,string); } else if(IsPlayerAdmin(i) && Informace[i][AdminLevel] > 0) { format(string, 60, "[ On-line ] %s | [ LVL %d + RCON ]",Jmeno(i),Informace[i][AdminLevel]); SystemMessage(playerid,string); } } } return 1; } Prosim HELP? Link to comment Share on other sites More sharing options...
0 Paulo* 32 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 TY SII KARR :DD http://pawno.cz/topic/45090-admins-online-pres-dialog/ rhs tam dal neaky tak to cekuj a ked to chces na rze tak zabudni Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Admini","Blablabla ","Ok","",); Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 nechcem to na rze Link to comment Share on other sites More sharing options...
0 Paulo* 32 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 tak potom moj odkaz Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 to je blbost ja to robim s Exisom a tam by som chcel mat Online Admins tabulkovz skusal som aj ten odkaz a robil som ale nepasoval Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 Sry já tě špatně pochopil Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 bože tu je ceze z Exisu? Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 Jakou máš verzi exisu -4.01 ? Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 ano Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 CMD:admins(playerid, params[]) { if(AdminsOnline() == 0) return MLMSvitz(playerid, "Na serveri nieje pritomny ziadny Administrator."); new string[1024] = "{ff4444}Online administrátori na serveri:\n\n{ffffff}"; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i) && Informace[AdminLevel] == 0) { format(string, 1024, "%s%s | [ RCON ]\n",string,Jmeno(i)); } else if(Informace[AdminLevel] > 0 && !IsPlayerAdmin(i)) { format(string, 1024, "%s%s | [ LVL %d ]\n",string,Jmeno(i),Informace[AdminLevel]); } else if(IsPlayerAdmin(i) && Informace[AdminLevel] > 0) { format(string, 1024, "%s%s | [ LVL %d + RCON ]\n",string,Jmeno(i),Informace[AdminLevel]); } } } ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_MSGBOX, "Online administrátori", string, "Zrušiť", ""); return 1; } Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 Zkus toto: dcmd_admins(playerid,params[]) { #pragma unused params new str2[1000]; new online; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) { else if(Informace[i][AdminLevel] > 0 && !IsPlayerAdmin(i)) { new str[800]; format(str[i],sizeof(str),"[ On-line ] %s | [ LVL %d ]\n",Jmeno(i),Informace[i][AdminLevel]); strcat(str2,str[i]); online++; } else if(IsPlayerAdmin(i) && Informace[i][AdminLevel] > 0) { new st[800]; format(st[i],sizeof(st),"[ On-line ] %s | [ LVL %d + RCON ]\n",Jmeno(i),Informace[i][AdminLevel]); strcat(str2,st[i]); online++; } if(IsPlayerAdmin(i) && Informace[i][AdminLevel] == 0) { new st[800]; format(st[i],sizeof(st),"[ On-line ] %s | [ RCON ]\n",Jmeno(i)); strcat(str2,st[i]); online++; } } if(online == 0) { ShowPlayerDialog(playerid,ADMINS2,DIALOG_STYLE_MSGBOX,"Administratori On-line:","Na serveri nieje pritomny ziadny Administrator","ok",""); } else { new str[128]; format(str,sizeof(str),"%s \n celkem %d",str2,online); ShowPlayerDialog(playerid,ADMINS,DIALOG_STYLE_MSGBOX,"Administratori On-line:",str,"ok",""); } return 1; } Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 1. Duben, 2013 Share Odesláno: 1. Duben, 2013 new str[128]; toto si trochu doj*bal pretoze by si tam mal tak ci tak 127 znakov, ked formatujes string v ktorom je vacsi string tak logicky ze ten novy string musi byt vacsi ako ten ktory don vkladas Link to comment Share on other sites More sharing options...
0 KarTooN 1 Odesláno: 1. Duben, 2013 Share Odesláno: 1. Duben, 2013 Podmínky ani optimalizace není tvoje silná stránka (Daniel).. navíc ti to nebude fungovat, jelikož si zapomenul závorku.. if(IsPlayerConnected(i) Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 1. Duben, 2013 Share Odesláno: 1. Duben, 2013 Ježíšku já to stáhnul z iného Help jen sem mu tam dosadil info jako je Informace [Adminlevel] a text jako je Administrátoři On-line: atd. Můžete říct ,že je to špatně ,ale proč se mu neznažíte pomoct a taky sem něco nedáte??? Link to comment Share on other sites More sharing options...
Dotaz
Fabricator 0
Sojte
Akoby som spravil admins mam ho od Exisu na tabulkový? tu je cod
Prosim HELP?
Link to comment
Share on other sites
14 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