The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leave House Function or ContextMenu
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #1
Leave House Function or ContextMenu
Hello, I am trying to create a command or statement or contextmenu that allows you to leave a house so players can't get stuck in houses. I can't figure out how to have the player scan the area for the nearest house sign then grab the house sign's P. Currently I am trying to use a contextmenu to do so but I would also like them to be able to type something like on=I wish to leave this house and then it teleports them to under the house sign. Here is my current code..

Code:
[EVENTS e_all_players]
ON=@ContextMenuRequest
if (<isonhouse> == 1)
SRC.AddContextEntry 1001,6207,0
SRC.AddContextEntry 1000,5000,0
else
SRC.AddContextEntry 1000,5000,0
endif

ON=@ContextMenuSelect
IF (<ARGN>==1000)
    f_playerinfo_d_chooser
ENDIF

IF (<ARGN>==1001)
REF1=?????
src.go <REF1>
ENDIF
(This post was last modified: 04-21-2012 07:55 PM by Reflex.)
04-21-2012 07:54 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Leave House Function or ContextMenu - Reflex - 04-21-2012 07:54 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)