blazen12 0 Odesláno: 8. Březen, 2014 Share Odesláno: 8. Březen, 2014 zdravím nudím sa tak sem začal robiť takú vyhytávku pred menom v chate hodnosti, všetko šlo v pohode až ted sem narazil na hodnosť pre adminov neviem ako to urobiť ...help pls Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 8. Březen, 2014 Globální moderátor Share Odesláno: 8. Březen, 2014 takhle ti asi těžko někdo pomůže .. dej sem aspoň kod Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 if(AdminLevel[playerid] == 5 && IsPlayerAdmin(playerid) { new s3[128]; new meno[50]; GetPlayerName(playerid, meno, 50); format(s3, 128, "%s"lg"[Admin]{ffffff} : {ffffff}%s", meno, text); SendClientMessageToAll(GetPlayerColor(playerid), s3); return 0; takto sam to mal na lvl 5 Link to comment Share on other sites More sharing options...
0 MinecraftPlayer 0 Odesláno: 8. Březen, 2014 Share Odesláno: 8. Březen, 2014 a máš rcon? Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 na rcon mam toto if(IsPlayerAdmin(playerid)) { new str[128]; new meno[50]; GetPlayerName(playerid, meno, 50); format(str, 128, "%s{ff0000}[Hl.Admin]{ffffff} : {ffffff}%s", meno, text); SendClientMessageToAll(GetPlayerColor(playerid), str); return 0; Link to comment Share on other sites More sharing options...
0 MinecraftPlayer 0 Odesláno: 8. Březen, 2014 Share Odesláno: 8. Březen, 2014 Tak proč v tý podmínce kontroluješ zároven jestli má i rcon. Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 nevim ako by to teda malo byť inak Link to comment Share on other sites More sharing options...
0 MinecraftPlayer 0 Odesláno: 8. Březen, 2014 Share Odesláno: 8. Březen, 2014 V tý podmínce si umož IsPlayerAdmin Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 nie nefunguje v chate to nepisa za "admina" Link to comment Share on other sites More sharing options...
0 EEEE 8 Odesláno: 8. Březen, 2014 Share Odesláno: 8. Březen, 2014 Tak obyčajný admin ti nefunguje, lebo zadávaš ako podmienku k nemu aj RCON admina nie ? Namiesto if(AdminLevel[playerid] == 5 && IsPlayerAdmin(playerid) daj len if(AdminLevel[playerid] == 5) a keď to myslíš tak, že máš errory... tak tu if(AdminLevel[playerid] == 5 && IsPlayerAdmin(playerid) ti chýba jedna zátvorka... správne takto: if(AdminLevel[playerid] == 5 && IsPlayerAdmin(playerid)) Nieje ti rozumieť... nabuduce sa vyjadruj normálne a zrozumiteľnejšie. Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 ani s .. if (AdminLevel [playerid] == 5) to nefuguje Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 8. Březen, 2014 Globální moderátor Share Odesláno: 8. Březen, 2014 nevím o čem se bavíte teď ale v té upplně první podmínce ti chybí if(AdminLevel[playerid] == 5 && IsPlayerAdmin(playerid)) //závorka Link to comment Share on other sites More sharing options...
0 blazen12 0 Odesláno: 8. Březen, 2014 Author Share Odesláno: 8. Březen, 2014 { if (AdminLevel [playerid] == 5) { new str[128]; new meno[50]; GetPlayerName(playerid, meno, 50); format(str, 128, "%s{ff0000}[Hl.Admin]{ffffff} : {ffffff}%s", meno, text); SendClientMessageToAll(-1,s); return 0; } tak ja už neviem čo stym Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 9. Březen, 2014 Globální moderátor Share Odesláno: 9. Březen, 2014 a takhle náhodou máš to v publicu onplayertext ... ? Link to comment Share on other sites More sharing options...
Dotaz
blazen12 0
zdravím nudím sa tak sem začal robiť takú vyhytávku pred menom v chate hodnosti, všetko šlo v pohode až ted sem narazil na hodnosť pre adminov neviem ako to urobiť ...help pls
Link to comment
Share on other sites
13 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