SA-MP Forums Archive
Message after time - 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: Message after time (/showthread.php?tid=547599)



Message after time - cnoopers - 23.11.2014

It is possible to add waiting for show the message by gettime or another func like that?
I got:
Код:
//OnPlayerText
	if(strfind(text, "hop", true))
	{
                  //SCM appears after ex. 1000ms
        }
can't use settimer


Re: Message after time - OsteeN - 23.11.2014

Why can you not use SetTimer()?


Re: Message after time - cnoopers - 23.11.2014

because i got a lot of this and for every if a would have to make another timer i think.


Re: Message after time - M0HAMMAD - 23.11.2014

pawn Код:
//= add this codes upside your gamemode :
forward Message(playerid);
public Message(playerid)
{
    SendClientMessage(playerid,-1,"Your Message...");
    return 1;
}
//= OnPlayerText
if(strfind(text, "hop", true))
{
    SetTimerEx("Message",1000, false, "i", playerid);
    return 0;
}
here you go..


Re: Message after time - cnoopers - 23.11.2014

little problem
Код:
		if(strfind(text, "hop", true))
		{
                          //scm
                }
if we will write hop, scm won't be shown but another text without 'hop' will show scm. should be turned around, whats incorrect