HELP: About OnPlayerText.. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP: About OnPlayerText.. (
/showthread.php?tid=85312)
HELP: About OnPlayerText.. -
RyDeR` - 06.07.2009
Hi When I type aq in my server the server answers otomaticly 'Server:Bende senin aq' but
it Spams when I do that.
I used Timer to look like a real player is typing. Anybody can Solve this problem
pawn Код:
forward Aq();
//////////////////////////////////////////////////////////////////////////////
public OnPlayerText(playerid, text[])
{
if((strfind(text,"aq",true,0))== 0){
SetTimer("Aq",1000,1);
return 1;
}
///////////////////////////////////////////////////////////////////////////////
public Aq()
{
SendClientMessageToAll(0xFFFF00AA, "Server: Bende senin a.q");
return 1;
}
Re: HELP: About OnPlayerText.. -
refshal - 06.07.2009
The timer is the 'spamming bot'. Don't forget to kill your timer when you want it to stop.
Re: HELP: About OnPlayerText.. -
RyDeR` - 06.07.2009
Quote:
Originally Posted by cοοp
The timer is the 'spamming bot'. Don't forget to kill your timer when you want it to stop.
|
Ow yes Right I forgot it Thank you
I'll Try If there's a problem I'll write
Re: HELP: About OnPlayerText.. -
Correlli - 06.07.2009
Or just set timer's repeat to 0 so it won't repeat.