Cheatexec

From EventScripts Community Encyclopedia


Overview

Syntax: cheatexec <userid> <command>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: none

Description

Allows you to force a client to execute silently a cheat command as noclip

Parameters

  • userid - the userid of the player
  • command - the cheatcommand you want to be executed


Examples

event player_say
{
	if (event_var(text) = "noclip") then cheatexec event_var(userid) noclip
}


Notes

  • The example is the same as doing
es_forcevalue sv_cheats 1
es_sexec event_var(userid) noclip
es_forcevalue sv_cheats 0


See also

blog comments powered by Disqus