Help with this script please

haha, Im also the gm cant warp. need to wait for 5 minute. T_T

i want to be use on my player only. how to adjust ?
Here

Code:
-	script	atcmd_warpdelay	-1,{OnInit:	bindatcmd "warp",strnpcinfo(3)+"::OnAtcommand",0,99;	end;OnAtcommand:	set .@min,5;	//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;}
 
@kyeme, now its work.

+1 for you. Thanks alot
default_smile.png


is that possible for @go ?

 
@kyeme, now its work.

+1 for you. Thanks alot
default_smile.png


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;
 
@kyeme, now its work.

+1 for you. Thanks alot
default_smile.png


is that possible for @go ?
- script atcmd_godelay -1,{

OnInit:
bindatcmd "go",strnpcinfo(3)+"::OnAtcommand",0,99;
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
default_smile.png


 
Last edited by a moderator:
@kyeme, now its work.

+1 for you. Thanks alot
default_smile.png


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
default_smile.png
thx alot
default_smile.png


 
@kyeme, now its work.

+1 for you. Thanks alot
default_smile.png


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
default_smile.png
thx alot
default_smile.png
copy the script again I edited it to make it work, just edit the time and gm level

 
Back
Top