Krt3c3k 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Ahoj.chtěl bych se zeptat jak udělám že bych nastavil třeba sobě nebo nějakému hráči hodnost před jméno. Napište mi prosím stránku kde bych to zjistil nebo mi napište kód.Děkuji. Myslím tyto hodnosti: Majitel,Hl.admin,Admin,VIP Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 new Hodnost[MAX_PLAYERS]; Hodnost[playerid] = ? ; 1 - Admin 2 - Hl. Admin 3 - Majitel 4 - Vip OnPlayerText: new Text[256]; if(Hodnost[playerid] == 0) { format(Text,256,"[Hráč]_ %s ID: %d : %s",GetPlayerName(playerid),playerid,text); SendClientMessageToAll(Barva,Text); }else if(Hodnost[playerid] == 1) { format(Text,256,"[Admin]_ %s ID: %d : %s",GetPlayerName(playerid),playerid,text); SendClientMessageToAll(Barva,Text); } atd... atd... ..Snad ti to pomohlo jako inspirace Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Napiš mi to prosím celé bylo tam 8 erroru nebo pošli stránku s tím kodem díky Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Však se snaž, základ máš.... new Hodnost[MAX_PLAYERS]; PlayerText: new Text[256]; if(Hodnost[playerid]== 0) { format(Text,256,"[Hráč]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]); SendClientMessageToAll(0x000000, Text); return 0; }else if(Hodnost[playerid]== 1) { format(Text,256,"[Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]); SendClientMessageToAll(0x000000, Text); return 0; }else if(Hodnost[playerid]== 2) { format(Text,256,"[Hl.Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]); SendClientMessageToAll(0x000000, Text); return 0; }else if(Hodnost[playerid]== 3) { format(Text,256,"[Majitel]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]); SendClientMessageToAll(0x000000, Text); return 0; }else if(Hodnost[playerid]== 4) { format(Text,256,"[VIP]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]); SendClientMessageToAll(0x000000, Text); return 0; } Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Já jsem nováček pawno dělám 1 měsíc a moc jsem se nenaučil tak mi pomož! Prosím díky že si mi to napsal hele a jakej mám použít příkaz (abych to někomu nastavil na ID) Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Nováček, nenováček... Tím že ti někdo napíše, celý kód a ty uděláš jen Ctrl +c a Ctrl +v... Se toho moc nenaučíš... Máš to výše.. Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 To co si napsal pod svuj 2 koment nefunguje Hej tak pls fakt pomož mi jsem tady 1 měsíc a moc neumím Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 A že bys napsal co ti nefunguje.? Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Má to 7 erroru tam to co si říkal že to mám výše to nejde -__- Má to 7 erroru!! new Hodnost[MAX_PLAYERS];PlayerText:new Text[256];if(Hodnost[playerid]== 0){format(Text,256,"[Hráč]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 1){format(Text,256,"[Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 2){format(Text,256,"[Hl.Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 3){format(Text,256,"[Majitel]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 4){format(Text,256,"[VIP]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;} Todle myslím! Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 A tak jsi blbý... To je mě jasný že ti nejede ten kód... Ale co ti na tom nejede.? Jaký errory ti to háže.?.. Řádky.?.. Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(28) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(5) : error 020: invalid symbol name "" C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(6) : error 010: invalid function or declaration C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(8) : error 010: invalid function or declaration C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(8 -- 10) : error 010: invalid function or declaration C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(8 -- 11) : error 010: invalid function or declaration C:\Users\Jan\Desktop\Mamciny soubory\hod.pwn(8 -- 11) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors. Tydle Ty už mě tak napůl se**š Fakt sorry ale prosimtě napiš to už správně nebudu si tady s tebou každou minutu psát Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Ehmmm...Ukaž celej kód Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 new Hodnost[MAX_PLAYERS];PlayerText:new Text[256];if(Hodnost[playerid]== 0){format(Text,256,"[Hráč]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 1){format(Text,256,"[Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 2){format(Text,256,"[Hl.Admin]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 3){format(Text,256,"[Majitel]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;}else if(Hodnost[playerid]== 4){format(Text,256,"[VIP]_ %s ID:%d : %s",GetPlayerName(playerid),playerid,text[0]);SendClientMessageToAll(0x000000, Text);return 0;} Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Jéžiš... S tebou je to marný :DDD... Pokud chceš pomoct ozvy se mi na skype .. Nechci spamovat příspěvkama o ničem )).. Skype : burysek..2 Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Tak mi to vem na skype jsem krt3c3k3 Link to comment Share on other sites More sharing options...
0 Troy 2 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 ty hodnosti ti napíšu, jen musíš počkat až je dodělám Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Troyy já to mylsím takle že nastavím hodnost to myslím jako prefix před jménem př: [Admin]DemonCZE nebo [VIP]DemonCZE nebo [Hráč]DemonCZE [Majitel]DemonCZE a takový ne že budou jiný práva jo? Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 A co jsem ti asi udělal :DDDD Nastavíš hráči proměnnou a podle ní budeš určovat co bude mít hráč před jménem :DDD Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Jenže to nefunguje já to nastavím a nic se nestane Dávám tam jako idiot /hodnost MojeID vyberu hodnost a nic se nestane před jménem to nemám _!! co ted ?! mluv Link to comment Share on other sites More sharing options...
0 Konvicka 0 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 Ty jsi chtěl jako celkově změnit jméno.?.. Proč to neřekneš rovnou.. Měl jsem za to že to chceš v Chatu před jménem Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 To taky chci -.- omg si tak tupej nebo co ?? todle byl příklad: dám /hodnost vyberu tam hodnost a dá se mi to před jméno potom napíšu třeba bla bla a v chatu se objeví př.: [Admin]DemonCZE:bla bla todle jsem myslel! Dokázal by si to udělat?! Ale už bez chyb prosím Udělal by mi to někdo prosím ? Link to comment Share on other sites More sharing options...
0 Troy 2 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 jzs.. vždyť to tak myslím! k příkazu si nastavíš třeba:if(AdminLevel <1) return SendClientMessage(playerid,0xFFFF00,"Nemáš dostatečná práva");to znamená, pokud je někdo menší level než 1, tak nemůže uskutečnit příkaz nebo:if(AdminLevel >1) return SendClientMessageToAll(0xFFFF00,"[Admin]%s: %s",admin,text);nadefinuješ si slovo admin a slovo text, to if adminlevel atd.. nevím jestli to mám správnějestli bys potřeboval pomoc, stačí mi napsat na skype: troy585 Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 31. Leden, 2014 Globální moderátor Share Odesláno: 31. Leden, 2014 To taky chci -.- omg si tak tupej nebo co ?? už jenom z tohohle důvodu bych ti neporadil vůbec Link to comment Share on other sites More sharing options...
0 Tanga 131 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 (upraveno) kr3t3cek ty si fakt taký tupý ako píšeš? Kód ti písať nejdem, ti si stratený prípad, ale mohol by ti pomôcť wilszonov admin system, tam má tie hodnosti ako majitel atd.Jeho skype ti dať nemôžem tak si daj zoznam učtov a tam si to najdi.Aj keby si bol slepý, za mesiac kopírovania a kradnutia skriptov by si sa aspoň niečo naučil. Edited 31. Leden, 2014 by Tango Link to comment Share on other sites More sharing options...
0 Krt3c3k 0 Odesláno: 31. Leden, 2014 Author Share Odesláno: 31. Leden, 2014 Troyy přijmi ten skype teda Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 31. Leden, 2014 Share Odesláno: 31. Leden, 2014 #include <a_samp> new Hodnost[MAX_PLAYERS]; new HodnostNazev[][] = { "Nováček",//Hodnost[playerid] = 0; "Hráč",//Hodnost[playerid] = 1; "Admin",//Hodnost[playerid] = 2; "Hl.Admin"//Hodnost[playerid] = 3; }; public OnPlayerText(playerid,text[]) { new string[144]; format(string,sizeof(string),"[%s] %s (%d): %s",HodnostNazev[Hodnost[playerid]],Jmeno(playerid),playerid,text); SendClientMessageToAll(GetPlayerColor(playerid),string); return 0; } stock Jmeno(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name; } Enjoy copying and remains stupid Link to comment Share on other sites More sharing options...
Dotaz
Krt3c3k 0
Ahoj.chtěl bych se zeptat jak udělám že bych nastavil třeba sobě nebo nějakému hráči hodnost před jméno.
Napište mi prosím stránku kde bych to zjistil nebo mi napište kód.Děkuji.
Myslím tyto hodnosti: Majitel,Hl.admin,Admin,VIP
Link to comment
Share on other sites
30 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