SA-MP Forums Archive
Timer on this. - 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: Timer on this. (/showthread.php?tid=240478)



Timer on this. - patfay - 15.03.2011

Alright, well I don't want people to beable to just type next all through the tutorial, so how would I make this command have to wait about 15 seconds to beable to use it.
pawn Код:
if(! strcmp(text, "Next", true)) {
        if(Player[playerid][Tutorial] >= 1) {
            if(Player[playerid][ServerTut] >= 1) {
                switch(Player[playerid][ServerTut]) {
                    case 1:
In other words, make it so that in order to use this command, you have to wait 15 seconds, if you try and type it before the 15 seconds is up, it will display a message saying "Enough time has not passed yet, please read the text throughly"