Započeo c0x
•14. Feb. 2016.• Zaključano[POMOC] Pomoc oko BE Skripte
2,864
pregleda
14
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos16
Novi Član
174 / 250 XP
Početnik(1)
281
Postovi:
34
Teme:
Pridružio se:Jan. 2016
14. Feb. 2016.
Skripta koju koristim: Balkan Extrazy XBER 3.1.0
Detaljan opis problema: Kad udjem na kucni server, i ulogujem se kao /rcon i kucam /makeadmin nista mi ne izadje.. Niti kako ide komanda pravilno niti sta.. Tako iste za neke cmd..
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Detaljan opis problema: Kad udjem na kucni server, i ulogujem se kao /rcon i kucam /makeadmin nista mi ne izadje.. Niti kako ide komanda pravilno niti sta.. Tako iste za neke cmd..
Dio skripte:
YCMD:makeadmin(playerid,params[],help)
{
#pragma unused help
if(UlogovanIgrac == 0 || PI == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a!");
if(PI < 1 && ACCmd == 1) return Error(playerid, "Komande mozete koristiti svake 2 sekunde!");
CmdProtect(playerid);
CmdLog(playerid, 53);
if(UlogovanIgrac == 0) return Error(playerid, "Nisi ulogovan!");
if(IsPlayerConnected(playerid))
{
if(!strcmp(GetNameEx(playerid), Owner_1, true) || !strcmp(GetNameEx(playerid), Owner_2, true) || !strcmp(GetNameEx(playerid), Director_1, true) || !strcmp(GetNameEx(playerid), Director_2, true) || !strcmp(GetNameEx(playerid), Director_3, true) || !strcmp(GetNameEx(playerid), Director_4, true) || !strcmp(GetNameEx(playerid), Director_5, true) || !strcmp(GetNameEx(playerid), Director_6, true))
{
new id, lvl, slot;
if(IsPlayerAdmin(playerid) || PI >= 6)
{
if(sscanf(params, "uii", id, lvl, slot)) return Cmd(playerid, "/makeadmin (playerid) (level) (slot 1-20 (0 skidanje))");
else if(id == IPI) return Error(playerid, "Pogresan ID!");
else if(slot < 0 || slot > 30) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(slot < 1 && lvl > 0) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(lvl < 0 || lvl > 6) return Error(playerid, "Ne moze vise od 6 ili manje od 0!");
else
{
if(lvl > 0)
{
//
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",slot);
new text;
format(text,64,"%s",GetNameEx(id));
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
//
new string;
SetPlayerSkin(id, 294);
PI = 294;
PI = lvl;
new kod = random(500)+99;
PI = kod;
PI = slot;
PI = 1;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
BubblePermission1(id);
printf("AdmCmd: %s je promovisan od strane %s na level %d ABS-a.", GetName(id), GetName(playerid), lvl, slot);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisani ste na Admin level %d od strane ABS-a %s, vas kod je: %d, a slot: %d.", lvl, GetName(playerid), kod, slot);
SCM(id, -1, string);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisali ste gradjanina %s na Admin level %d, slot: %d.", GetName(id),lvl, slot);
SCM(playerid, -1, string);
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Admin %s je postavio gradjaninu %s Admin level %d, slot: %d.", GetName(playerid), GetName(id), lvl, slot);
PAdm(ZUTA, string, 1);
new str;
format(str,128,"%s je dao gradjaninu %s ABS-a level %d, slot: %d.",GetName(playerid),GetName(id),lvl, slot);
MakeLog(str);
new stris;
format(stris,500,"{FFFFFF}Cestitamo vam, postali ste Admin na Balkan Extazy RolePlay serveru!\nAdmin level %d vam je dao owner %s.\n\nVAZNO:\nOvaj kod sto ce vam dole biti napisan, morate napisati na neki papiric,\njer ce se on traziti svaki put kada se logujete!\nTakodje taj kod ce vam biti poslan na e-mail.\nKOD: %d",lvl,GetName(playerid),kod);
SPD(id, 19536, DSM, ""COL_BE"Admin", stris, "OK", "");
//SetPVarInt(id, "Izbegavanje", 1);
new strki;
format(strki, 128, "%s", PI);
new stringmm;
format(stringmm,300,"Vas Admin Code je: %d\n- Balkan Extazy Admin Team.",kod);
SendMail(strki, "podrska@balkanextazy.net", "Balkan Extazy RolePlay", "Balkan Extazy - Admin Code", stringmm);
SaveAccount(id);
}
else if(lvl < 1)
{
if(PI > 0)
{
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",PI);
new text;
format(text,64,"Niko");
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
}
new string;
PI = lvl;
SetPlayerSkin(id, 59);
PI = 59;
PI = 0;
PI = 0;
PI = 0;
SCMF(id, -1, ""COL_BE"BE: {FFFFFF}Skinuta vam je pozicija ABS-a od strane %s.",GetName(playerid));
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Owner %s je skinuo ABS-a gradjaninu %s.", GetName(playerid), GetName(id));
PAdm(ZUTA, string, 1);
//SetPVarInt(id, "Izbegavanje", 0);
SaveAccount(id);
SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
BubblePermission1(id);
}
}
}
}
}
return true;
}Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos16
Novi Član
174 / 250 XP
Početnik(1)
281
Postovi:
34
Teme:
Pridružio se:Jan. 2016
15. Feb. 2016.
🎶🎵â¤Tosicâ¤🎵🎶 wrote on February 15, 2016, 7:45 am:
Imas u skripti #define Owner1 "tvoj nick" i recompile skriptu i tjt
Znam, ali mi trazi neki Security Keycode posto sam vlasnik a ja ne znam koji je niti znam da ga postavim..
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos16
Novi Član
174 / 250 XP
Početnik(1)
281
Postovi:
34
Teme:
Pridružio se:Jan. 2016
15. Feb. 2016.
🎶🎵â¤Tosicâ¤🎵🎶 wrote on February 15, 2016, 10:24 am:
Nerazumem se toliko u mod samo sam ga skinuo i pogledao mape itd. Probaj ukucati u skripti security keycode i vidi..
Nije Code, sad cu pokusati nesto drugo.. 😉
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
181
Postovi:
2
Teme:
Pridružio se:Feb. 2016
15. Feb. 2016.
Pokusaj ovako, samo se loguj kao rcon admin.
YCMD:makeadmin(playerid,params[],help)
{
#pragma unused help
if(UlogovanIgrac == 0 || PI == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a!");
if(PI < 1 && ACCmd == 1) return Error(playerid, "Komande mozete koristiti svake 2 sekunde!");
CmdProtect(playerid);
CmdLog(playerid, 53);
if(UlogovanIgrac == 0) return Error(playerid, "Nisi ulogovan!");
if(IsPlayerConnected(playerid))
{
if( IsPlayerAdmin( playerid ) || PI[ playerid ][ Admin ] == 6)) //izmeni ovo ako je drugacije
{
new id, lvl, slot;
if(sscanf(params, "uii", id, lvl, slot)) return Cmd(playerid, "/makeadmin (playerid) (level) (slot 1-20 (0 skidanje))");
else if(id == IPI) return Error(playerid, "Pogresan ID!");
else if(slot < 0 || slot > 30) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(slot < 1 && lvl > 0) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(lvl < 0 || lvl > 6) return Error(playerid, "Ne moze vise od 6 ili manje od 0!");
else
{
if(lvl > 0)
{
//
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",slot);
new text;
format(text,64,"%s",GetNameEx(id));
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
//
new string;
SetPlayerSkin(id, 294);
PI = 294;
PI = lvl;
new kod = random(500)+99;
PI = kod;
PI = slot;
PI = 1;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
BubblePermission1(id);
printf("AdmCmd: %s je promovisan od strane %s na level %d ABS-a.", GetName(id), GetName(playerid), lvl, slot);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisani ste na Admin level %d od strane ABS-a %s, vas kod je: %d, a slot: %d.", lvl, GetName(playerid), kod, slot);
SCM(id, -1, string);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisali ste gradjanina %s na Admin level %d, slot: %d.", GetName(id),lvl, slot);
SCM(playerid, -1, string);
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Admin %s je postavio gradjaninu %s Admin level %d, slot: %d.", GetName(playerid), GetName(id), lvl, slot);
PAdm(ZUTA, string, 1);
new str;
format(str,128,"%s je dao gradjaninu %s ABS-a level %d, slot: %d.",GetName(playerid),GetName(id),lvl, slot);
MakeLog(str);
new stris;
format(stris,500,"{FFFFFF}Cestitamo vam, postali ste Admin na Balkan Extazy RolePlay serveru!\nAdmin level %d vam je dao owner %s.\n\nVAZNO:\nOvaj kod sto ce vam dole biti napisan, morate napisati na neki papiric,\njer ce se on traziti svaki put kada se logujete!\nTakodje taj kod ce vam biti poslan na e-mail.\nKOD: %d",lvl,GetName(playerid),kod);
SPD(id, 19536, DSM, ""COL_BE"Admin", stris, "OK", "");
//SetPVarInt(id, "Izbegavanje", 1);
new strki;
format(strki, 128, "%s", PI);
new stringmm;
format(stringmm,300,"Vas Admin Code je: %d\n- Balkan Extazy Admin Team.",kod);
SendMail(strki, "podrska@balkanextazy.net", "Balkan Extazy RolePlay", "Balkan Extazy - Admin Code", stringmm);
SaveAccount(id);
}
else if(lvl < 1)
{
if(PI > 0)
{
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",PI);
new text;
format(text,64,"Niko");
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
}
new string;
PI = lvl;
SetPlayerSkin(id, 59);
PI = 59;
PI = 0;
PI = 0;
PI = 0;
SCMF(id, -1, ""COL_BE"BE: {FFFFFF}Skinuta vam je pozicija ABS-a od strane %s.",GetName(playerid));
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Owner %s je skinuo ABS-a gradjaninu %s.", GetName(playerid), GetName(id));
PAdm(ZUTA, string, 1);
//SetPVarInt(id, "Izbegavanje", 0);
SaveAccount(id);
SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
BubblePermission1(id);
}
}
}
}
return true;
}
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos16
Novi Član
174 / 250 XP
Početnik(1)
281
Postovi:
34
Teme:
Pridružio se:Jan. 2016
15. Feb. 2016.
Mr. Letic wrote on February 15, 2016, 6:56 pm:
Pokusaj ovako, samo se loguj kao rcon admin.
YCMD:makeadmin(playerid,params[],help)
{
#pragma unused help
if(UlogovanIgrac == 0 || PI == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a!");
if(PI < 1 && ACCmd == 1) return Error(playerid, "Komande mozete koristiti svake 2 sekunde!");
CmdProtect(playerid);
CmdLog(playerid, 53);
if(UlogovanIgrac == 0) return Error(playerid, "Nisi ulogovan!");
if(IsPlayerConnected(playerid))
{
if( IsPlayerAdmin( playerid ) || PI[ playerid ][ Admin ] == 6 )) //izmeni ovo ako je drugacije
{
new id, lvl, slot;
if(sscanf(params, "uii", id, lvl, slot)) return Cmd(playerid, "/makeadmin (playerid) (level) (slot 1-20 (0 skidanje))");
else if(id == IPI) return Error(playerid, "Pogresan ID!");
else if(slot < 0 || slot > 30) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(slot < 1 && lvl > 0) return Error(playerid, "Slot ne moze biti manji od 1 ili veci od 30!");
else if(lvl < 0 || lvl > 6) return Error(playerid, "Ne moze vise od 6 ili manje od 0!");
else
{
if(lvl > 0)
{
//
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",slot);
new text;
format(text,64,"%s",GetNameEx(id));
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
//
new string;
SetPlayerSkin(id, 294);
PI = 294;
PI = lvl;
new kod = random(500)+99;
PI = kod;
PI = slot;
PI = 1;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
PI = 0;
BubblePermission1(id);
printf("AdmCmd: %s je promovisan od strane %s na level %d ABS-a.", GetName(id), GetName(playerid), lvl, slot);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisani ste na Admin level %d od strane ABS-a %s, vas kod je: %d, a slot: %d.", lvl, GetName(playerid), kod, slot);
SCM(id, -1, string);
format(string, sizeof(string), ""COL_BE"BE: {FFFFFF}Promovisali ste gradjanina %s na Admin level %d, slot: %d.", GetName(id),lvl, slot);
SCM(playerid, -1, string);
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Admin %s je postavio gradjaninu %s Admin level %d, slot: %d.", GetName(playerid), GetName(id), lvl, slot);
PAdm(ZUTA, string, 1);
new str;
format(str,128,"%s je dao gradjaninu %s ABS-a level %d, slot: %d.",GetName(playerid),GetName(id),lvl, slot);
MakeLog(str);
new stris;
format(stris,500,"{FFFFFF}Cestitamo vam, postali ste Admin na Balkan Extazy RolePlay serveru!\nAdmin level %d vam je dao owner %s.\n\nVAZNO:\nOvaj kod sto ce vam dole biti napisan, morate napisati na neki papiric,\njer ce se on traziti svaki put kada se logujete!\nTakodje taj kod ce vam biti poslan na e-mail.\nKOD: %d",lvl,GetName(playerid),kod);
SPD(id, 19536, DSM, ""COL_BE"Admin", stris, "OK", "");
//SetPVarInt(id, "Izbegavanje", 1);
new strki;
format(strki, 128, "%s", PI);
new stringmm;
format(stringmm,300,"Vas Admin Code je: %d\n- Balkan Extazy Admin Team.",kod);
SendMail(strki, "podrska@balkanextazy.net", "Balkan Extazy RolePlay", "Balkan Extazy - Admin Code", stringmm);
SaveAccount(id);
}
else if(lvl < 1)
{
if(PI > 0)
{
new ldst;
format(ldst,128,"BExtazy/admini/%d.txt",PI);
new text;
format(text,64,"Niko");
new File:log;
log = fopen(ldst, io_write);
fwrite(log, text);
fclose(log);
}
new string;
PI = lvl;
SetPlayerSkin(id, 59);
PI = 59;
PI = 0;
PI = 0;
PI = 0;
SCMF(id, -1, ""COL_BE"BE: {FFFFFF}Skinuta vam je pozicija ABS-a od strane %s.",GetName(playerid));
format(string,sizeof(string), "{FBE204}[{F81414}*{FBE204}] BE-AC // Owner %s je skinuo ABS-a gradjaninu %s.", GetName(playerid), GetName(id));
PAdm(ZUTA, string, 1);
//SetPVarInt(id, "Izbegavanje", 0);
SaveAccount(id);
SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
BubblePermission1(id);
}
}
}
}
return true;
}
Pokusacu pa cu da javim, u svakom slucaju hvala 😉
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP Doprinos16
Novi Član
174 / 250 XP
Početnik(1)
281
Postovi:
34
Teme:
Pridružio se:Jan. 2016
15. Feb. 2016.
Mr.Gordon wrote on February 15, 2016, 10:35 pm:
kao prvo odes pod Owner_1 stavis svoje ime 🙂 a posle nadjes #define A_LD_CODE tamo ti pise kod to kopiraj to ti da se logiras kao vlasnik resen problem
Hvala ti puno, inace @Mr. Letic opet ono nije htelo a sve sam dobro bio uradio.. 😉
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
444
Postovi:
44
Teme:
Pridružio se:Mar. 2012
15. Feb. 2016.
c0x wrote on February 15, 2016, 10:35 pm:
kao prvo odes pod Owner_1 stavis svoje ime 🙂 a posle nadjes #define A_LD_CODE tamo ti pise kod to kopiraj to ti da se logiras kao vlasnik resen problem
Hvala ti puno, inace @Mr. Letic opet ono nije htelo a sve sam dobro bio uradio.. 😉
Nista uzivaj 😉 pisi mi na PP dacu ti neke zanimljive stvari za taj mod da se ne mucis 😉
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
