[Pomoc] Anti-spam

Započeo System32
•18. Maj 2011.
1,073
pregleda
9
postova
Mr.Lowrey
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
18. Maj 2011.
Skripta koju koristim: iStunt
Detaljan opis problema: Nasao sam FS za anti-spam i anti-cmd spam i sve ono meni radi kao FS ali kad ga stavim u GM anti-spam ne radi a anti-cmd spam radi, znaci anti-spam bi trebao kickat igraca a ne kicka, koristim ZCMD i ja mislim da je do toga, za ZCMD i u koamnde OnPlayerCommandPreformed tako nesto, e a mene zanima koja je za tekst u zCMD jer je sigurno do toga!
Dio skripte:
{
    new TCount, name;

    TCount = GetPVarInt(playerid, "TextSpamCount");

    TCount++;

    SetPVarInt(playerid, "TextSpamCount", TCount);

    if(TCount == 3)
{
        SendClientMessage(playerid, COLOR_KRED, "JoÅ¡ jedna poruka i biti ćete izbačeni!");
    }
    else if(TCount == 4)
{
        GetPlayerName(playerid, name, sizeof(name));
        format(name, sizeof(name), "iStunt: Server je izbacio %s zbog spamanja!", name);
        SendClientMessageToAll(COLOR_KRED, name);
        print(name);
        Kick(playerid);
        TogglePlayerControllable(playerid, 0);
    }

    SetTimerEx("ResetCount", SpamLimit, false, "i", playerid);
    }
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Viky
6
Legenda Foruma
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
18. Maj 2011.
iz callbacka OnPlayerCommandText, prebacis u OnPlayerCommandReceived
Mr.Lowrey
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
ma ne to, imama OnPlayerCommandPreformed, to sve radi ali treba mi za text, kuzis? Funkcija iz ZCMD za tekst 😄
Viky
6
Legenda Foruma
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
Evo ti anti-spam

vrh:

new bool:as = true;

OnPlayerText:

public OnPlayerText(playerid,text[]){
if(as) { SendClientMessage(playerid,-1,"Mozes pisati jednu poruku u 2 sekunde"); return 0; }
as = true; SetTimerEx("asa",2000,false,"i",playerid);
return 1;
}

Kraj moda:

forward asa(playerid); public asa(playerid){ as = false; return 1; }
Mr.Lowrey
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
error -.-
iStunt.pwn(871) : error 033: array must be indexed (variable "as")

if(as) return SendClientMessage(playerid, COLOR_KRED,"Mozes pisati jednu poruku u 2 sekunde");
Viky
6
Legenda Foruma
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
Popravio sam gore, probaj sad
Mr.Lowrey
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
ma ja brate samo taj tvoj anti-spam ne radi, mogu spamat koliko hocu -.-
Viky
6
Legenda Foruma
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
A da kazes sta se desi kada spamas, de opisi problem
Mr.Lowrey
5
Godfather
Balkan SA:MPBalkan SA:MP
SA-MP DoprinosSA-MP Doprinos
19. Maj 2011.
Quote from May 19, 2011, 10:23 am:
A da kazes sta se desi kada spamas, de opisi problem
sta se desi kad spamam? Desi se to da mogu spamati koliko hocu, nego da te pitam, jel ja moram koristit ovaj moj spam gore i ovaj tvoj? jer sam ja stavio tvoj i onaj moj gore njega stavio u /* */

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha