- script atcmd_warpdelay -1,{OnInit: bindatcmd "warp",strnpcinfo(3)+"::OnAtcommand",0,99; end;OnAtcommand: set .@min,2; //delay in mins set .@gmlvl,99; // GM lvl to bypass the delay set .@delay,.@min * 60; if (warpdelay > gettimetick(2) && getgmlevel() < .@gmlvl) { set .@delaytime,warpdelay - 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 "@warp "+.@map$+""; set warpdelay,gettimetick(2) + .@delay; end;}
as you can see, this is a warp delay. btw. how to make the animation when player type @warp, that will a loading..
1 to 5 second then he will be warp to the location.. ermm.. loading.....
as you can see, this is a warp delay. btw. how to make the animation when player type @warp, that will a loading..
1 to 5 second then he will be warp to the location.. ermm.. loading.....
Share this post
Link to post
Share on other sites