Thread: warping players
View Single Post
  #1  
Old 06-11-2002, 06:54 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
warping players

Ok I'm making an NPC where when the player say warp "whatever", it would set the whatever into a server.string.
So I would say "warp darkriders_p2p" and it would set server.warp=darkriders_p2p.This is the script:
NPC Code:

if (playerchats) {
if (startswith(warp,#c)) {
addstring server.warp,#e(5,-1,#c);
}
}


k now I need the player I'm working this on to warp to the level, &
the string to reset.I am thinking it would have to be a hidden NPC the player gets when they start rite?
something like:
NPC Code:

if (isweapon) {
timeout=0.05;
if (timeout) {
if (strequals(#s(server.warp),#a)) {
setlevel2 asteria_hatnpc.nw,x,y;
deletestring server.warp,;
}
}
}


why doesn't that work?
It doesn't even warp me
__________________
maximus_asinus
Reply With Quote