SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/01/2013, 01:47 AM   #1
FL3GM4
Big Clucker
 
Join Date: Nov 2012
Posts: 176
Reputation: 1
Default 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;
}
FL3GM4 is offline   Reply With Quote
Old 13/01/2013, 02:04 AM   #2
u3ber
Big Clucker
 
Join Date: Jan 2013
Posts: 161
Reputation: 24
Default Re: IC chat and Commands spaming - Help!

timers.
u3ber is offline   Reply With Quote
Old 13/01/2013, 02:11 AM   #3
FL3GM4
Big Clucker
 
Join Date: Nov 2012
Posts: 176
Reputation: 1
Default Re: IC chat and Commands spaming - Help!

I know that i need to do that with timers, but i dont know how :/
FL3GM4 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spaming with killing player dud Scripting Help 1 08/12/2012 09:52 PM
New chat commands jonnyboy Help Archive 2 16/08/2010 05:14 PM
[FilterScript] [FS]Chat Commands patchkinson Filterscripts 3 09/07/2010 05:39 PM
command spaming TouR Help Archive 14 24/02/2010 02:05 PM


All times are GMT. The time now is 04:25 AM.


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