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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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