Es.cexec all

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



Method: cexec all

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

Method Overview

Table of Contents

Contents


Description

Forces all users to execute a command in their console. This is the Python equivalent of: http://www.eventscripts.com/pages/es_cexec_all

Arguments

  • command - Command that all players are forced to run


Examples

def player_death(event_var):
    if event_var["weapon"] == "knife":
        es.cexec_all("playgamesound","bot/owned.wav","1.0")

Notes

  • May not force the user to run server-side commands


See Also

blog comments powered by Disqus