Es.escmenu

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: escmenu

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Sends an ESC menu to a player.

Arguments

  • duration - the number of seconds the notice should stay up. Use 0 for indefinitely.Time in seconds
  • userid - the userid you wish to show the menu to
  • description - this is the description you want to show in the menu
  • button 1 - clickable button you want to show

...

  • button n
es.escmenu(<duration>, <userid>, <description>, <button 1>, [button 2], ..., [button n])


Examples

Admin menu example:

import es
def player_say(event_var):
    if event_var['text'] == 'menu':
        es.escmenu(25, event_var['userid'], 'Admin Menu', 'Click any of the buttons.', 'slay', 'kick', 'ban')
        if event_var['command'] == 'menuselect':
            if event_var['commandstring'] == '1':
                es.msg('slay!')

Notes


See Also

blog comments powered by Disqus