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