Message after time
#1

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
Reply
#2

Why can you not use SetTimer()?
Reply
#3

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

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..
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)