Jump to content
  • 0
Sign in to follow this  
kerbiii

Help with this script please

Question

26 answers to this question

Recommended Posts

  • 0

 

 

 

@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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.