kerbiii 5 Posted November 17, 2013 a script that will put a 5mins cooldown delay on commands such as @warp Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 17, 2013 @kyeme, now its work. +1 for you. Thanks alot is that possible for @go ? - script atcmd_godelay -1,{ OnInit: bindatcmd "go",strnpcinfo(3)+"::OnAtcommand",0; end; OnAtcommand: set .@min,1; //delay in mins set .@gmlvl,2; // GM lvl to bypass the delay set .@delay,.@min * 60; if (@godelay > gettimetick(2)) && getgmlevel() < .@gmlvl) { set .@delaytime,@godelay - gettimetick(2); message strcharinfo(0),"You must wait "+.@delaytime+" seconds to use this command again."; end; } setarray .@param$,.@atcmd_parameters$[0],.@atcmd_parameters$[1],.@atcmd_parameters$[2]; set .@map$,implode(.@param$," "); atcommand "@go "+.@map$+""; set @godelay,gettimetick(2) + .@delay; end; here for @go i just edit it thx alot copy the script again I edited it to make it work, just edit the time and gm level Quote Share this post Link to post Share on other sites
a script that will put a 5mins cooldown delay on commands such as @warp
Share this post
Link to post
Share on other sites