[pomoc] Ponavljanje napisanog

Započeo MT3 bolinx
4. Feb. 2012. Zaključano
545
pregleda
6
postova
Paul McCartney
4
Enforcer
4. Feb. 2012.
Skripta koju koristim: CL  😎
Detaljan opis problema: Znaci kad upisem neku komandu poput /mute,/jail,/rtc,/rac on dva puta kaze npr " Nick_Blabla je unistio vozila" tu poruku vide samo ADMINI. Sve ostale dolazne poruke mi se ne ponavljaju npr (/help,/tourlcstvori,/forestunisti) znaci te komande nista ne salju ostalim online adminima nego samo meni "Unistio si stvorene Infernuse za Forest Race".
Dio skripte:
PlayerInfo = 0;
PlayerInfo = 0;
format(string, sizeof(string), "("rd"C.Life{FFFFFF}!) "rd"%s {FFFFFF}je odsutkan od "rd"%s!",giveplayer ,sendername);
ABroadCast(WHITE,string,1);
printf("AdmCmd: %s unsilenced %s",sendername,  giveplayer);


Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.zaslike.com/files/tckj20299tewbfej9fg.jpg (zaokruzio sam to 🙂 ne vidi se bas dobro al...) xD

EDIT: sam sam nesta pokuso, al neznam od kud da pocnem. Poceo sam skriptat prije 5 dana xD
FlasHica
5
Kingpin
4. Feb. 2012.
ABroadCast(WHITE,string,1);

vjerovatno imaš dalje u kodu formatiranu poruku koja ti salje isti text kao čovjeku koji je 'odsutkao' igrača, znači imas admin poruku(ABroadCast) i poruku kao igraču.
Nadam se da si shvatio... a ako nisi postaj cijelu komandu!
Paul McCartney
4
Enforcer
4. Feb. 2012.
	if(strcmp(cmd, "/mute", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /mute [ID Igraca/Dio Imena] ");
return 1;
}
new playa;
new time;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
time = strval(tmp);
if (PlayerInfo >= 1 || PlayerInfo >= 1)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /mute [ID Igraca/Dio Imena] ");
return 1;
}
if(PlayerInfo == 0)
{
format(string, sizeof(string), "* {FFFFFF}%s {00C0FF}ti je oduzeo pravo govora na {FFFFFF}%d {00C0FF}minuta | Razlog: {FFFFFF}%s",sendername,time,(result));
SendClientMessage(playa, SVETLOPLAVA, string);
format(string, sizeof(string), "* Usutkao si "COL_RED"%s.", giveplayer);
SendClientMessage(playerid, WHITE, string);
PlayerInfo = 1;
PlayerInfo = time*60;
format(string, sizeof(string), "("rd"C.Life{FFFFFF}!) %s je usutkan od %s na %d minuta(s) | Razlog: "rd"%s",giveplayer ,sendername,time,(result));
ABroadCast(WHITE,string,1);
printf("C.Life | %s je ustkao %s",sendername,  giveplayer);
}
else
{
PlayerInfo = 0;
PlayerInfo = 0;
format(string, sizeof(string), "("rd"C.Life{FFFFFF}!) "rd"%s {FFFFFF}je odsutkan od "rd"%s!",giveplayer ,sendername);
ABroadCast(WHITE,string,1);
printf("AdmCmd: %s unsilenced %s",sendername,  giveplayer);
}
}
}
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"C.Life{FFFFFF}!) Niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}


mislim da nema, ili mozda ima?  😳
FlasHica
5
Kingpin
4. Feb. 2012.
Znači nije do toga..
postaj ABroadCast stoc/public funkciju.
Moguće da ta funkcija šalje npr. adminima i gamemasterima a ti imaš oboje tj. oba ranka!
Paul McCartney
4
Enforcer
4. Feb. 2012.
jaooo hvala puno  😄 bio sam GM i ADMIN pa mi je slalo za GM-a i za ADMINA poruku. Hvala jos jednom  😉
FlasHica
5
Kingpin
4. Feb. 2012.
Paul McCartney wrote on February 4, 2012, 4:15 pm:
jaooo hvala puno  😄 bio sam GM i ADMIN pa mi je slalo za GM-a i za ADMINA poruku. Hvala jos jednom  😉

a mogo si i sam rijeÅ¡it  😄 😄 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha