Guest Odesláno: 23. Srpen, 2011 Share Odesláno: 23. Srpen, 2011 Zdravím, tímto prosím moderátory o smazání viewtopic.php?f=22&t=22017 .. Přináším sem můj AS verze druhá, vyzkoušeno, našrobeno, všechno funguje jak má ... Příkazy: Všichni: /admins ; / report ; /cmds Admin lvl 1: /kick ; /ban ; /me ; /mute ; /unmute ; /freeze ; /unfreeze ; /var ; /goto ; /get ; /clearchat ; /belaone ; /slay ; /beback ; /nick ; /acheat ; /health Admin lvl 2: /gw ; /gm ; /server ; /kickall Download: http://www.ulozto.cz/10051109/admin-pwn Btw, na 105 - 135 řádku máte zbraně na anticheat .. ty zbraně které nechcete zakazovat tak smažte, zde máte pomoc: wikiiiiii Link to comment Share on other sites More sharing options...
Angelus 3 Odesláno: 23. Srpen, 2011 Share Odesláno: 23. Srpen, 2011 Pekné, no levely a varovanie si mohol dať na PVars Edit: neni tam spec "nene" a ako vidím, dáš si zakázanú zbraň pomocou /gw a kickne ťa anticheat.. tam by si mohol pridať aby si ju nemohol dať Edit2: ešte otázočka: SetPlayerName(id,newname); format(string,sizeof(string),"Administrátor %s nastavil hráči %s jiné jméno",PlayerName(playerid),PlayerName(id)); má byť úmyselne že napíše už zmenené meno? Link to comment Share on other sites More sharing options...
Root 0 Odesláno: 26. Srpen, 2011 Share Odesláno: 26. Srpen, 2011 Jednoduche ale dobre Link to comment Share on other sites More sharing options...
mattmatt 20 Odesláno: 26. Srpen, 2011 Share Odesláno: 26. Srpen, 2011 10/10 .. Jednoduché , Super Funkce , Prostě Dokonale NICE! Link to comment Share on other sites More sharing options...
_VaNovec_ 2 Odesláno: 12. Březen, 2012 Share Odesláno: 12. Březen, 2012 Viem je to staré lale ja s tým mám problem že teraz nemožem dať žiaden príkaz ktorý nieje v tom scripte čo mam vymazať bay mi neukazovalo že tento príkaz neexistuje ? Link to comment Share on other sites More sharing options...
Guest Odesláno: 12. Březen, 2012 Share Odesláno: 12. Březen, 2012 Změň si CMD systém třeba na DCMD Link to comment Share on other sites More sharing options...
Guest Odesláno: 12. Březen, 2012 Share Odesláno: 12. Březen, 2012 Nájdi si riadok 457 a toto return SCM(playerid,COLOR_RED,"Príkaz {FF0000}neexistuje"); zmeň na return 0; Link to comment Share on other sites More sharing options...
KarTooN 1 Odesláno: 12. Březen, 2012 Share Odesláno: 12. Březen, 2012 /belaone - nechtěl jsi dát /bealone jinak dobré, ale udělal bych to na 3 levely Link to comment Share on other sites More sharing options...
Matěj Barci 0 Odesláno: 12. Březen, 2012 Share Odesláno: 12. Březen, 2012 Nic extra, chce to něco nového... 4/10 Link to comment Share on other sites More sharing options...
mEy 0 Odesláno: 13. Březen, 2012 Share Odesláno: 13. Březen, 2012 Mohl bych se zeptat jak někomu můžeš uložit level ? když se odpojí a připojí tak nemá lvl Link to comment Share on other sites More sharing options...
Guest Odesláno: 13. Březen, 2012 Share Odesláno: 13. Březen, 2012 public OnPlayerConnect(playerid) { new cesta[10+MAX_PLAYER_NAME]; format(cesta,sizeof(cesta),"/%s.admin",PlayerName(playerid)); Alvl[playerid] = dini_Int(cesta,"admin"); return true; } public OnPlayerDisconnect(playerid,reason) { if(Alvl[playerid] > 0) { new cesta[10+MAX_PLAYER_NAME]; format(cesta,sizeof(cesta),"/%s.admin",PlayerName(playerid)); dini_IntSet(cesta,"admin",Alvl[playerid]); } return true; } Ukladá sa to samo... ale nevytvorí súbor, takže to nefunguje musíš urobiť public OnPlayerDisconnect(playerid,reason) { if(Alvl[playerid] > 0) { new cesta[10+MAX_PLAYER_NAME]; format(cesta,sizeof(cesta),"/%s.admin",PlayerName(playerid)); new File:file = fopen(cesta,io_write); format(cesta,sizeof(cesta),"admin=%d\r\n",Alvl[playerid]); fwrite(file,cesta); fclose(file); } return true; } Link to comment Share on other sites More sharing options...
mEy 0 Odesláno: 13. Březen, 2012 Share Odesláno: 13. Březen, 2012 Dík QWERe , a hele nešlo by udělat že když napíšou /admins tak by se jim ukázalo Žádnej Admin není na serveru , Pokud by ovšem žádnej admin na serveru nebyl , protože když napíšeš /admins a na serveru neni admin tak se ti nic neukáže , nevíš jak to udělat ? Link to comment Share on other sites More sharing options...
Guest Odesláno: 13. Březen, 2012 Share Odesláno: 13. Březen, 2012 toto QCMD:admins(playerid,params[]) { new stringa[128], string[MAX_PLAYER_NAME*6+120]; for(new i;i { if(Alvl[i] > 0 && IsPlayerConnected(i)) { format(stringa,sizeof(stringa),"%s {0000FF}: {FFFFFF}%s\n",PlayerName(i),Admins(i)); strcat(string,stringa); } } ShowPlayerDialog(playerid,31000,DIALOG_STYLE_MSGBOX,"Online admini:",string,"OK",""); return true; } zmeň na QCMD:admins(playerid,params[]) { new stringa[128], string[MAX_PLAYER_NAME*6+120],admincount; for(new i;i { if(Alvl[i] > 0 && IsPlayerConnected(i)) { format(stringa,sizeof(stringa),"%s {0000FF}: {FFFFFF}%s\n",PlayerName(i),Admins(i)); strcat(string,stringa); admincount++; } } if(admincount == 0){ ShowPlayerDialog(playerid,31000,DIALOG_STYLE_MSGBOX,"Online admini:","Na servery bohužiaľ žiadny admin není online","OK",""); }esle{ ShowPlayerDialog(playerid,31000,DIALOG_STYLE_MSGBOX,"Online admini:",string,"OK",""); } return true; } Link to comment Share on other sites More sharing options...
mEy 0 Odesláno: 13. Březen, 2012 Share Odesláno: 13. Březen, 2012 moc dík frajere Link to comment Share on other sites More sharing options...
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