[POMOC] Chat

30. Maj 2015. Zaključano
255
pregleda
3
postova
arambasa
5
Underboss
30. Maj 2015.
Skripta koju koristim: EG:RP v1
Detaljan opis problema: Pa namestio sam da moze chat na svakih 2 sec ali kad ukuca 2 puta nesto zaredom ispise mu da ne moze chat ali ipak posalje poruku i to celom serveru posalje
Dio skripte: bice dole
Neke slike/video za lakse dobivanje pomoci(neobavezno)http://i.imgur.com/BOOrw5h.png
public OnPlayerText(playerid, text[])
{
if(VipchatTimebre == 1)
    {
    SendClientMessage(playerid, -1, ""ROZA"Morate sacekati 2 sekundi da koristite chat ponovo!");
    return 1;
    }

if (strval(text) == Rezultat && ReakcijaAktivna == 1)
{
        new string;
        new novac = 500 + random(2500);
g_NovacPlus(playerid, novac);
        format(string,sizeof string," "ZELENA" "ZUTA"%s je prvi odgovorio tacno i dobio "BELA"%d$! "ZUTA"Rezultat je "BELA"%d!",GetName(playerid), novac, Rezultat);
        SendClientMessageToAll(-1,string);
        ReakcijaAktivna = 0;
return 0;
}
//=================================
    if (UlogovanProvera != 1)
{
SCM(playerid,-1,""CRVENA"[BC:RP AntiCheat] "ZUTA"Moras biti ulogovan da bi pisao!");
return 0;
}
    if(PlayerInfo == 1)
{
SCM(playerid,-1,"[BC:RP AntiCheat] "CRVENA"Mutirani ste ne mozete pisati!");
return 0;
}
for(new words; words < sizeof(ZabranjeneReci); words++)
{
if(strfind(text,ZabranjeneReci,true) != -1 ) { SCM(playerid,-1,"[BC:RP AntiCheat]: "CRVENA"Ta rec je zabranjena ne mozete je pisati!"); return 0; }
}
if(TelefonRazgovor != -1 && TelefonZvoni == false)
{
    new string;
format(string, sizeof(string), ""ZUTA"[Na Telefon] %s kaze: "BELA"%s", GetName(playerid), text);
SCM(playerid, -1, string);
format(string, sizeof(string), ""ZUTA"[Na Telefon] %s kaze: "BELA"%s", GetName(playerid), text);
SCM(TelefonRazgovor, -1, string);
if(PlayerInfo < 1)
{
VipchatTimebre = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
    if(PricauIntervju != 255)
{
    new string;
if(PlayerInfo == 6 || PlayerInfo == 6)
{
    format(string, sizeof(string), ""ORANGE" "BELA"Voditelj "ORANGE"%s: "BELA"%s", GetName(playerid), text);
SCMTA(-1, string);
}
else
{
    format(string, sizeof(string), ""ORANGE" "BELA"Gost "ORANGE"%s: "BELA"%s", GetName(playerid), text);
SCMTA(-1, string);
}
if(PlayerInfo < 1)
{
VipchatTimebre = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
if(realchat)
{
new tekst1 = strlen(text),string;
for(new i = 0; i if(PlayerInfo < 1)
{
format(string, sizeof(string), ""BELA"%s kaze: %s", GetName(playerid), text);
SetPlayerChatBubble(playerid, text, 0xFF0000AA, 100.0, 10000);
ProxDetector(20.0, playerid, string,BELA2,BELA2,BELA2,BELA2,BELA2);
}
else
{
format(string, sizeof(string), ""ZUTA"|ADMIN|"BELA"%s "ZUTA"kaze: "BELA"%s", GetName(playerid), text);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 100.0, 10000);
ProxDetector(20.0, playerid, string,BELA2,BELA2,BELA2,BELA2,BELA2);
}
if(PlayerInfo < 1)
{
VipchatTimebre = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
return 1;
}
Deci
6
Kingpin
🔥5
30. Maj 2015.
Probaj sa:
SCM(playerid, -1, ""ROZA"Morate sacekati 2 sekundi da koristite chat ponovo!");


EDIT: A ako ovo ne bude radilo probaj da stavis return na 0.

idk

arambasa
5
Underboss
30. Maj 2015.
Deci wrote on May 30, 2015, 11:39 am:
Probaj sa:
SCM(playerid, -1, ""ROZA"Morate sacekati 2 sekundi da koristite chat ponovo!");


EDIT: A ako ovo ne bude radilo probaj da stavis return na 0.


SendClientMessage je u redu , bio je problem u returnu.
Hvala

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha