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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Death Menu
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Death Menu
If you have an event that is on all players defined in sphere.ini

Code:
//Events related to all players
EventsPlayer=e_allplayers    // <--- here

You can add:

Code:
        ON=@Death
            if !(<isgm>)
                TIMERF 3, f_closest //timer allows for death screen change
            endif
        
        ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
            if (<flags>&=statf_dead>) && !(<isgm>)
                f_closest
            endif

To that event, or alternatively create an event:

Code:
[EVENTS e_death_event]
        ON=@Death
            if !(<isgm>)
                TIMERF 3, f_closest //timer allows for death screen change
            endif
        
        ON=@Login //This section to allow for those killed on logout who HAVE NOT used menu
            if (<flags>&=statf_dead>) && !(<isgm>)
                f_closest
            endif
[code]

and set your ini to look like this:

[code]
//Events related to all players
EventsPlayer=e_death_event

A third option exists where you all player event line in the ini can look like this:

Code:
//Events related to all players
EventsPlayer=e_random_event, e_another_random_event, e_death_event

[Image: 2nis46r.jpg]
12-14-2012 07:05 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Death Menu - Mordaunt - 09-10-2012, 06:17 AM
RE: Death Menu - Onirim - 12-14-2012, 05:36 AM
RE: Death Menu - Onirim - 12-14-2012, 07:04 AM
RE: Death Menu - Mordaunt - 12-14-2012 07:05 AM
RE: Death Menu - Onirim - 12-15-2012, 01:15 AM
RE: Death Menu - Onirim - 12-15-2012, 03:31 AM
RE: Death Menu - Onirim - 12-15-2012, 04:41 AM
RE: Death Menu - Mordaunt - 12-15-2012, 10:28 AM
RE: Death Menu - Onirim - 12-15-2012, 05:33 PM
RE: Death Menu - Mordaunt - 12-16-2012, 03:12 AM
RE: Death Menu - Onirim - 12-16-2012, 03:17 AM
RE: Death Menu - Kyrbis - 07-25-2013, 06:17 AM
RE: Death Menu - darksun84 - 07-25-2013, 07:11 AM
RE: Death Menu - Kyrbis - 07-25-2013, 08:01 AM
RE: Death Menu - darksun84 - 07-25-2013, 08:35 AM
RE: Death Menu - Kyrbis - 07-25-2013, 08:39 AM
RE: Death Menu - darksun84 - 07-25-2013, 08:47 AM
RE: Death Menu - Kyrbis - 07-25-2013, 09:10 AM
RE: Death Menu - darksun84 - 07-25-2013, 09:23 AM
RE: Death Menu - Kyrbis - 07-25-2013, 09:43 AM
RE: Death Menu - Mordaunt - 07-25-2013, 10:21 AM

Forum Jump:


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