Skripta koju koristim:Cyber
Detaljan opis problema😮vako kucam /broji i izadje mi nisi ADMIN/GM a ja jesam admin 1338 pa kako sada to da popravim
Dio skripte:pawno
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
[Pomoc]Brojac
1,197
pregleda
10
postova
6. Mar. 2011.
CMD:broji(playerid,params[])
{
new string;
new Float:X, Float:Y, Float:Z;
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
if (auts != false) return SendClientMessage(playerid, CRVENA, "Vec je pokrenuto brojanje!");
{
auts = true;
format(string,sizeof(string),"Admin:%s je pokrenuo brojac", ImeIgraca(playerid));
SendClientMessageToAll(NARANDZASTA, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~:::: ~r~5 ~w~::::",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count4",2000,0);
SetTimer("count3",3000,0);
SetTimer("count2",4000,0);
SetTimer("count1",5000,0);
SetTimer("countgo",6000,0);
SetTimer("stop",7000,0);
}
return 1;
}
eo ti to zamjeni s onim i radit ce ti
{
new string;
new Float:X, Float:Y, Float:Z;
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
if (auts != false) return SendClientMessage(playerid, CRVENA, "Vec je pokrenuto brojanje!");
{
auts = true;
format(string,sizeof(string),"Admin:%s je pokrenuo brojac", ImeIgraca(playerid));
SendClientMessageToAll(NARANDZASTA, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~:::: ~r~5 ~w~::::",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count4",2000,0);
SetTimer("count3",3000,0);
SetTimer("count2",4000,0);
SetTimer("count1",5000,0);
SetTimer("countgo",6000,0);
SetTimer("stop",7000,0);
}
return 1;
}
eo ti to zamjeni s onim i radit ce ti
6. Mar. 2011.
Nikola_Hawks wrote on March 6, 2011, 7:15 pm:
Dio skripte:pawno
Kakav bolan pawno,postavi tu naredbu /broji da vidimo.
6. Mar. 2011.
hood9 wrote on March 6, 2011, 8:42 pm:
CMD:broji(playerid,params[])
{
new string;
new Float:X, Float:Y, Float:Z;
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
if (auts != false) return SendClientMessage(playerid, CRVENA, "Vec je pokrenuto brojanje!");
{
auts = true;
format(string,sizeof(string),"Admin:%s je pokrenuo brojac", ImeIgraca(playerid));
SendClientMessageToAll(NARANDZASTA, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~:::: ~r~5 ~w~::::",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count4",2000,0);
SetTimer("count3",3000,0);
SetTimer("count2",4000,0);
SetTimer("count1",5000,0);
SetTimer("countgo",6000,0);
SetTimer("stop",7000,0);
}
return 1;
}
eo ti to zamjeni s onim i radit ce ti
{
new string;
new Float:X, Float:Y, Float:Z;
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
if (auts != false) return SendClientMessage(playerid, CRVENA, "Vec je pokrenuto brojanje!");
{
auts = true;
format(string,sizeof(string),"Admin:%s je pokrenuo brojac", ImeIgraca(playerid));
SendClientMessageToAll(NARANDZASTA, string);
for(new i; i < MAX_PLAYERS; i++)
{
GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~w~:::: ~r~5 ~w~::::",1000,3);
GetPlayerPos(i, X,Y,Z);
}
SetTimer("count4",2000,0);
SetTimer("count3",3000,0);
SetTimer("count2",4000,0);
SetTimer("count1",5000,0);
SetTimer("countgo",6000,0);
SetTimer("stop",7000,0);
}
return 1;
}
eo ti to zamjeni s onim i radit ce ti
Ja mislim da ni ovo nevalja jer PlayerInfo treba da bude na > 1.
Razlog je ako bude < 1 to znaci da ce samo admini lvl 1, -1, -2 i tako na dalje..
Samo zameni PlayerInfo < 1 u PlayerInfo > 1 i ja mislim da bih trebalo da radi! 😉
6. Mar. 2011.
hood9 wrote on March 6, 2011, 8:50 pm:
LoooooooooL neee pa to kod mene na serv...radi tako je to mi je Glavni serv poslao to radi sto posto ako je 1 onda mogu SVI admini
Moguce, zavisi kako je admin sistem napravljen, ali neverujem da je napravljen na taj nacin! 😉
6. Mar. 2011.
hood9 wrote on March 6, 2011, 8:50 pm:
LoooooooooL neee pa to kod mene na serv...radi tako je to mi je Glavni serv poslao to radi sto posto ako je 1 onda mogu SVI admini
to je kod tebe jer ti je joXy poslao kako treba, ali u " pravom " je onako kako je autor prije tebe napisao
6. Mar. 2011.
@ (; H1n0 😉 da ti pojasnim malo:
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
Ovo ce returnati(vracati) poruku da igrac nije admin ako mu je admin lvl manji od 1..
Da je napravio ovako:
if(PlayerInfo < 1)
{
//neki kod
}
else SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
onda ne bi valjalo..u tom slucaju bi morao staviti > , a ne <
if(PlayerInfo < 1) return SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
Ovo ce returnati(vracati) poruku da igrac nije admin ako mu je admin lvl manji od 1..
Da je napravio ovako:
if(PlayerInfo < 1)
{
//neki kod
}
else SendClientMessage(playerid, BELA, "Niste Admin(lvl 1+)");
onda ne bi valjalo..u tom slucaju bi morao staviti > , a ne <
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava