Es.getUseridList

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



Method: getUseridList

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

Method Overview

Table of Contents

Contents


Description

This command allows you to retrieve a list of all the players userid on the server. Note that userids in the list are integers, not strings.

Arguments


Examples

def player_say(event_var):
    if event_var["text"] == "Hello":
        PlayerList = es.getUseridList()
        for Player in PlayerList:
            UserName = event_var["es_username"]
            PlayerName = es.getplayername(Player)
            es.tell(Player,"Hello " + PlayerName + ", Player " + UserName + " said hello to you.")

Notes

This cannot be used to get filtered UserID's.


See Also

l playerlib - It can produce filtered User Lists, but takes longer to make.

blog comments powered by Disqus