SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   IC chat and Commands spaming - Help! (https://forum.sa-mp.com/showthread.php?t=407205)

FL3GM4 13/01/2013 01:47 AM

IC chat and Commands spaming - Help!
 
How to make that players can write in IC/command every (for example) 2 seconds...

Code:

public OnPlayerText(playerid, text[])
{
        new LoseRijeci[][] =
        {
                        {"jebem"},
                        {"ustas"},
                        {"cetnici"}
        };
        for(new i; i != sizeof(LoseRijeci); ++i)
        {
                AntiPsovka(text, LoseRijeci[i]);
        }
        if(Mute[playerid] == 1){
        return SendClientMessage(playerid, COLOR_WHITE, "Ne mozes pricati");
    }
        else
        return 1;
}

Code:

public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if(!success)
    {
                SendClientMessage(playerid, COLOR_WHITE, "Napisali ste komandu koja nepostoji, koristite /cmds da vidite popis komandi!");
        }
        return 1;
}


u3ber 13/01/2013 02:04 AM

Re: IC chat and Commands spaming - Help!
 
timers.

FL3GM4 13/01/2013 02:11 AM

Re: IC chat and Commands spaming - Help!
 
I know that i need to do that with timers, but i dont know how :/


All times are GMT. The time now is 09:28 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.