Command Timer
#2

pawn Код:
COMMAND:suggest(playerid, params[])
{
    SetTimer("message", (1000 * 60 * 5), false);
    return 1;
}

forward message();
public message()
{
    print("1 second has passed.");
}
https://sampwiki.blast.hk/wiki/SetTimer

If you are going to make that timer set a variable to 0 (false) so that you are able to use the command again then use timestamps instead. Over-check: https://sampforum.blast.hk/showthread.php?tid=254915.
Reply


Messages In This Thread
Command Timer - by AlexR - 04.10.2015, 16:16
Re: Command Timer - by Kevln - 04.10.2015, 16:21
Re: Command Timer - by AlexR - 04.10.2015, 16:23
Re: Command Timer - by Kevln - 04.10.2015, 16:25
Re: Command Timer - by AlexR - 04.10.2015, 16:28
Re: Command Timer - by Kevln - 04.10.2015, 16:31
Re: Command Timer - by AlexR - 04.10.2015, 16:34
Re: Command Timer - by Kevln - 04.10.2015, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)