IC chat and Commands spaming - Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IC chat and Commands spaming - Help! (
/showthread.php?tid=407205)
IC chat and Commands spaming - Help! -
FL3GM4 - 13.01.2013
How to make that players can write in IC/command every (for example) 2 seconds...
Код:
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;
}
Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
if(!success)
{
SendClientMessage(playerid, COLOR_WHITE, "Napisali ste komandu koja nepostoji, koristite /cmds da vidite popis komandi!");
}
return 1;
}
Re: IC chat and Commands spaming - Help! -
u3ber - 13.01.2013
timers.
Re: IC chat and Commands spaming - Help! -
FL3GM4 - 13.01.2013
I know that i need to do that with timers, but i dont know how :/