Es.ServerVar

From EventScripts Community Encyclopedia



Method: es.ServerVar

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

Method Overview

Table of Contents

Contents


Description

Stores a server variable.

Arguments

es.ServerVar()


Examples

import es
def load():
        friendlyfire = es.ServerVar('mp_friendlyfire')
        if friendlyfire == '1':
                es.msg('#default', 'Friendlyfire is ON')
        else:
                es.msg('#default', 'Friendlyfire is OFF')

Notes

The values return as string values. use int(variable) to get the integer of it.


See Also

blog comments powered by Disqus