View Single Post
  #2  
Old 08-29-2001, 01:18 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
NPC Code:

if (playerchats&&strequals(#c,open sesame)) {
hide; // here we hide the door if the player says "open sesame"
dontblock; // this makes it so the passage doesn't block the player even when it's hiding
timeout = 5;
}
if (timeout) {
show; // this will show the door (secret passage blocker) again
blockagain; // this will block the passage again.
}


Now, if it's for an NPC Server, it's a whole different story, but you could probably get away with putting //#CLIENTSIDE in front of the whole script.
Reply With Quote