Est CExec

From EventScripts Community Encyclopedia
Syntax: est_CExec <players> <command>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Forces the selected players to run a server-side command

Parameters

  • players - See Est_PlayerSelection for player selection help
  • command - Command that the player is forced to run

Example


event player_jump
{
  es est_CExec event_var(userid) "use weapon_m3"
  // Forces player to switch to the shotgun (if they have it) when they jump
}

Notes

  • May not force the user to run commands that do not exist on the server.
  • cl_restrict_server_commands has no effect on this command.

See Also

blog comments powered by Disqus