azzzura Posted June 12, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 06/12/13 Last Seen: June 19, 2013 Share Posted June 12, 2013 Hi, for example i have some command, doesn't matter what is. How are can i make this command with some delay, to prevent spam? I want some way for make only one command with delay, for example around 5 seconds (5000 miliseconds). How? Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 12, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted June 12, 2013 http://rathena.org/board/files/file/2356-warp-go-damage-delay/ Quote Link to comment Share on other sites More sharing options...
1 QQfoolsorellina Posted June 12, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted June 12, 2013 or use bindatcmd script command - script asdf -1,{ end; OnInit: bindatcmd "command", strnpcinfo(0)+"::OnCommand"; end; OnCommand: if(gettimetic(2) < cooldowntime ){ dispbottom "Please wait 5 seconds!"; end; } atcommand "@command"; set cooldowntime,gettimetic(2)+5; end; } 2 Quote Link to comment Share on other sites More sharing options...
Cydh Posted June 13, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted June 13, 2013 if you want a src mod, see here http://rathena.org/board/topic/83569-delay-to-use-command/ Quote Link to comment Share on other sites More sharing options...
Question
azzzura
Hi, for example i have some command, doesn't matter what is.
How are can i make this command with some delay, to prevent spam?
I want some way for make only one command with delay, for example around 5 seconds (5000 miliseconds). How?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.