Thread: Account warper
View Single Post
  #9  
Old 11-10-2001, 01:45 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by TDO2000
here we go:

for the guy who warpes (Staff)

if(playerchats && startswith(warp,#c)){
tokenize #c;
setstring server.warping,#t(1) #t(2) #t(3) #t(4); //Account Level x Y
}

for the guy who gets warped:

if(playerenters || timeout){
if(!hasweapon(-warping)){toweapons -warping;}
if(startswith(#a,#s(server.warping))){
tokenize #s(server.warping);
setstring server.warping,;
setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
timeout=.05;
}

should work. It's used like u wanted it...
Use a timeout of like 5 seconds, there's still almost no chance that 2 staff members will try warping people within 5 seconds of each other, and that way, you aren't accessing a server.string every .05 seconds (which is a bad thing)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote