SA-MP Forums Archive
Messages between 10 secons - 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: Messages between 10 secons (/showthread.php?tid=391298)



Messages between 10 secons - cotyzor - 10.11.2012

I want to make a command like: "/text [message]" and when i type this for 3 times in a row messages appear at a distance of 10 seconds of each other ...

Exemple:

[00:00:00]: I type /text message1 ... /text message2 ... /text message3
[00:00:00]: Message 1
[00:00:10]: Message 2
[00:00:00]: Message 3



Re: Messages between 10 secons - cotyzor - 11.11.2012

Heeelp


Re: Messages between 10 secons - Abhishek. - 11.11.2012

1>take a variable like
new IsTenSecCompleted=0;
2>and then inside the command (/text)
if(IsTenSecCompleted==0)
{
//command codes
IsTenSecCompleted=1;
}
and now make a simple 10 second timer to make it back to 0
like
if(IsTenSecCompleted==1)
{
IsTenSecCompleted=0;
}


Re: Messages between 10 secons - Abhishek. - 11.11.2012

he dont wants to repeat the same message in 10 sec but if you spawned /text (but with diffrent texts both time :P) it just dont send the message of the 2nd /text but send the message after 10 sec
,if you get what i mean lol its confuseing.
or he wants what you gave him ??


Re: Messages between 10 secons - cotyzor - 11.11.2012

I want to type /text message1 (save "message1" in a temporary memory) message2 (save .....) message3 (save...) messagex(save..) and i want to display message1, message2 between 10 seconds (when i stay afk)