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






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: #5
RE: Leave House Function or ContextMenu
House Script

Code:
ON=Remove thyself
ON=Te expulso
if !(<DEF.scp.House_BanEngine>)
    return 0
endif
REF1=<UID.<SRC.REGION.UID>.MORE2>
if (<REF1.HousePlayerAccess <SRC>> >= 2)
    SRC.TARGETF f_house_eject <REF1>
    SRC.SYSMESSAGE @,,1 Select the individual to eject from this house.
endif

//end of remove thyself next is function it calls//

[FUNCTION f_house_eject]
REF1=<ARGS>
if (<ARGO.ISITEM>)
    SRC.SYSMESSAGE @,,1 You cannot eject that from the house!
    return 1
elif (<ARGO.REGION.UID> != <REF1.REGION.UID>)
    SRC.SYSMESSAGE @,,1 <ARGO.NAME> is not in your house.
    return 1
elif (<ARGO>==<SRC>)
    SRC.SYSMESSAGE @,,1 You can't eject yourself!
    return 1
elif (<REF1.IsOwner <ARGO>>)
    SRC.SYSMESSAGE @,,1 You can't eject the house owner!
    return 1
elif (<REF1.IsCoOwner <ARGO>>)
    SRC.SYSMESSAGE @,,1 You can't eject a house co-owner!
    return 1
elif (<REF1.IsFriend <ARGO>>)
    SRC.SYSMESSAGE @,,1 You can't eject a house friend!
    return 1
endif
ARGO.GO <REF1.P>
ARGO.FIX
SRC.SYSMESSAGE @,,1 <ARGO.NAME> has been ejected from this house.
ARGO.SYSMESSAGE @,,1 You have been ejected from this house. If you persist in entering, you may be banned from the house.
04-22-2012 05:27 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Leave House Function or ContextMenu - Reflex - 04-22-2012 05:27 AM

Forum Jump:


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