Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Vitez El arambasa poslato Maj 30, 2015, 13:33:37 POSLE PODNE

Naslov: [POMOC] Chat
Poruka od: Vitez El arambasa poslato Maj 30, 2015, 13:33:37 POSLE PODNE
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 (http://i.imgur.com/BOOrw5h.png)


public OnPlayerText(playerid, text[])
{
if(VipchatTimebre[playerid] == 1)
    {
    SendClientMessage(playerid, -1, ""ROZA"Morate sacekati 2 sekundi da koristite chat ponovo!");
    return 1;
    }


if (strval(text) == Rezultat && ReakcijaAktivna == 1)
{
        new string[164];
        new novac = 500 + random(2500);
g_NovacPlus(playerid, novac);
        format(string,sizeof string," "ZELENA"[REAKCIJA] "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[playerid] != 1)
{
SCM(playerid,-1,""CRVENA"[BC:RP AntiCheat] "ZUTA"Moras biti ulogovan da bi pisao!");
return 0;
}
    if(PlayerInfo[playerid][pMutiran] == 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[words],true) != -1 ) { SCM(playerid,-1,"[BC:RP AntiCheat]: "CRVENA"Ta rec je zabranjena ne mozete je pisati!"); return 0; }
}
if(TelefonRazgovor[playerid] != -1 && TelefonZvoni[playerid] == false)
{
    new string[256];
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[playerid], -1, string);
if(PlayerInfo[playerid][pAdmin] < 1)
{
VipchatTimebre[playerid] = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
    if(PricauIntervju[playerid] != 255)
{
    new string[256];
if(PlayerInfo[playerid][pClan] == 6 || PlayerInfo[playerid][pLider] == 6)
{
    format(string, sizeof(string), ""ORANGE"[LSN] "BELA"Voditelj "ORANGE"%s: "BELA"%s", GetName(playerid), text);
SCMTA(-1, string);
}
else
{
    format(string, sizeof(string), ""ORANGE"[LSN] "BELA"Gost "ORANGE"%s: "BELA"%s", GetName(playerid), text);
SCMTA(-1, string);
}
if(PlayerInfo[playerid][pAdmin] < 1)
{
VipchatTimebre[playerid] = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
if(realchat)
{
new tekst1 = strlen(text),string[256];
for(new i = 0; i<tekst1; i++) { if(IsNumeric(text[i])) text[i] = '*' ; }
if(PlayerInfo[playerid][pAdmin] < 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[playerid][pAdmin] < 1)
{
VipchatTimebre[playerid] = 1;
SetTimerEx("VipchatTimerbre", 2000, false, "i", playerid);
}
return 0;
}
return 1;
}
Naslov: Odg: [POMOC] Chat
Poruka od: m1lfman poslato Maj 30, 2015, 13:39:21 POSLE PODNE
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.
Naslov: Odg: [POMOC] Chat
Poruka od: Vitez El arambasa poslato Maj 30, 2015, 14:22:32 POSLE PODNE
Citat: Deci poslato Maj 30, 2015, 13:39:21 POSLE PODNE
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