EST SET COMMANDSUsual syntax: est_Set* <identifier> [value]
Identifiers list:
#a - all players on server
#c - all counter-terrorists
#t - all terrorists
#s - all spectators
#u - all unassigned
#h - all human players
#b - all bots
#l - all living players
#d - all dead players
You can add as many selections at once as you wish, you can also remove all of a selection by putting a '!' before the letter.
For Example to get all CT's that are alive you can do #c!d or all spectators and unassigned players that are not bot's, #su!b
name/part of username
steamid
userid
Set wrote:
est_SetAmmo - set the player's ammo reserve (Syntax: est_SetAmmo <identifier> <weapon slot/name> <amount>)
Example: es est_SetAmmo event_var(userid) weapon_deagle 50
Example: es est_SetAmmo #b 2 server_var(botssecammo)
est_SetArmor - set the player's armor value
Example: es est_SetArmor event_var(userid) 50
Example: es est_SetArmor #a server_var(armorvar)
est_SetCash - set the player's cash
Example: es est_SetCash event_var(userid) 1000
Example: es est_SetCash #h server_var(cashforhumans)
est_CashAdd - add some dollars to player's cash
Example: es est_CashAdd event_var(userid) 1000
est_SetGravity - set the player's gravity ratio (default = 1)
Example: es est_SetGravity event_var(userid) 0.5
Example: es est_SetGravity #h server_var(playersgrav)
est_SetModel - set the player's model (NemoD style)
Example: es est_SetModel event_var(userid) "player/myskins/myskin1"
Example: es est_SetModel #b server_var(botsskinpath)
est_SetPlayerColor - set the player's color (Syntax: est_SetPlayerColor <identifier> <red (0-255)> <green (0-255)> <blue (0-255)> <alpha (0-255)> [1=color weapons too])
Example: es est_SetPlayerColor event_var(userid) 255 0 0 255 => player will be red
Example: es est_SetPlayerColor event_var(userid) server_var(red) server_var(green) server_var(blue) 130 1 => player will be half visible with predefined color and active weapon will be colored as well
est_SetEntityColor - set any entitys color (Syntax: est_SetEntityColor <Entity Index> <red (0-255)> <green (0-255)> <blue (0-255)> <alpha (0-255)>)
Example: es est_SetEntityColor server_var(entindex) 0 0 255 150 => will color the entity matching the index in blue and half visible
est_SetViewAngle - changes where the player is looking at (angle, not coord) (Syntax: est_SetViewAngle <identifier> <pitch> <yaw> <roll>
Example: es est_SetViewAngle event_var(userid) server_var(pitch) server_var(yaw) server_var(roll)
est_Speed - changes a player's speed (default = 1)
Example: es est_Speed event_var(userid) 2 => player will run twice faster than default
Example: es est_Speed #b 0.1 => bots will be really slow
est_Name - forces a player's name
Example: es est_Name hax newbie => will name everyone that has "hax" in there name to newbie
est_DeathSet - set the player's deaths count
Example: es est_DeathSet event_var(userid) 50 => set player's deaths to 50
Example: es est_DeathSet #t 0 => reset terrorists deaths
est_DeathAdd - add deaths to player's deaths count
Example: es est_DeathAdd event_var(userid) 3 => add 3 deaths to player's deaths count
est_KillSet - set the player's kills count
Example: es est_KillSet #c 100 => 100 kills for each CT heh
Example: es est_KillSet #t -1 => -1 for Ts
est_KillAdd - add kills to player's kills count
Example: es est_KillAdd #h 100 => +100 kills for all humans
Example: es est_KillAdd event_var(userid) -2 => remove 2 kills from player's kills count
est_Team - forces a player in a team (NemoD style !!! Doesn't kill kill player anymore, doesn't show him the class menu anymore, just acts as if nothing happened)
Example: est_Team McFly 3 => I'm suddenly a CT
Special Functions Identifiers list:
All of the above
Special Functions wrote:
est_Burn - sets a player on fire for the specified amount of time (Syntax: est_Burn <identifier> <duration in seconds>)
Example: es est_Burn event_var(userid) => burn the player
est_Rocket - Turns the specified player into a Rocket (Syntax : est_Rocket <identifier>)
Example: est_Rocket #b => rocket the bots heh
est_Drunk - Makes the specified player drunk. If no time is set, it goes until the end of the round (Syntax : est_Drunk <identifier> [time])
Example: est_Drunk #h => too much beer guys
est_Drug - Puts the specified player on drugs. If no time is set, it goes until the end of the round (Syntax : est_Drug <identifier> [time])
Example: es est_Drug event_var(userid) => that player has taken something baaaad
est_God - 1/0 toggles god mode for player
Example: est_God McFly => haha you cannot kill me
est_Shake - shakes a player's screen (Syntax: est_Shake <identifier> <duration in seconds> <distance> <violence>)
Example: es est_Shake event_var(userid)
est_Fade - fades a player's screen (Syntax: est_Fade <identifier> <0=in|1=out|2=stayout> <fade time in seconds> <total time in seconds> <Red (0-255)> <Green (0-255)> <Blue (0-255)> <Alpha (0-255)>)
Example: est_Fade #t 0 5 10 255 0 0 150 => Ts cannot see much through the blood on their face lol
est_PhysPush - pushes the player in the specified direction (Syntax: est_PhysPush <identifier> <x force> <y force> <z force>)
Example: es est_PhysPush event_var(userid) server_var(xforce) server_var(yforce) server_var(zforce)
est_PushTo - pushes the players towards a coordinate (Syntax: est_PushTo <identifier> <x> <y> <z> <power>))
Example: es est_PushTo event_var(userid) server_var(x) server_var(y) server_var(z)
est_Freeze - freezes/unfreezes a player (Syntax: est_Freeze <identifier> <1/0>)
Example: est_Freeze #b 1 => bots frozen
est_Jetpack - enable/disable jetpack for player (Syntax: est_Jetpack <identifier> <1/0>)
Example: es est_Jetpack event_var(userid) 0 => disable jetpack for player if it was enabled
est_NoClip - enable/disable noclip mode for player (Syntax: est_NoCLip <identifier> <1/0>)
Example: est_NoClip McFly 1 => total god mode for me now ! Now I can even fly !
est_PlayPlayer - play a sound as if it was coming from the specified player (Syntax: est_PlayPlayer <identifier> <filename> [volume (default=1.0)])
Example: es est_PlayPlayer event_var(userid) "mysounds/cry.mp3" 0.5
est_ShowMenu - displays a menu to the specifier player(s) (Syntax: est_ShowMenu <duration in seconds> <identifier> <menu string>)
Example: est_ShowMenu 0 #h "Change map ?\n->1.Yes\n->2.No" => show that menu to all human players
Example: es est_ShowMenu 0 event_var(userid) server_var(mymenu) => show that menu to player
est_BuildMenu - makes a saved menu to be called by name, (can exceed length parameters) make sure all variables are expanded (Syntax: est_BuildMenu <Menu Name> <string to add>)
Example: Coming soon...
est_RemoveWeapon - deletes a playe's weapon (Syntax: est_RemoveWeapon <identifier> <weapon slot/name>
Example: est_RemoveWeapon #b weapon_deagle => if some bots have a Desert Eagle then remove it
Example: es est_RemoveWeapon event_var(userid) 1 => whatever the primary weapon of that player is it will be removed
est_RemoveIdle - removes entities that have no owner (matches partiel) (Syntax: est_RemoveIdle <class name>)
Example: est_RemoveIdle weapon_awp => removes all of the awp standing on the floor everywhere in the map
Example: est_RemoveIdle weapon => will remove all of the weapons standing on the floor
est_StripPlayer - removes all guns and items the player has (Syntax: est_StripPlayer <identifier>)
Example: est_StripPlayer McFly => damnit I don't even have a knife anymore lol
est_Give - gives a player a weapon, item, entity (Syntax: est_Give <identifier> <entity name>)
Example: est_Give #s weapon_m4a1 => yeah the spectators now have an M4A1, really useful heh
Example: es est_Give event_var(userid) weapon_awp => because I like tha player ^^
est_Spawn - respawns a player (Syntax: est_Spawn <identifier> [1=force]
Example: est_Spawn #d => The Day Of The Dead
est_DropWeapon - forces a player to drop a weapon (Syntax: est_DropWeapon <identifier> <waepon slot/name>) (not affected by cmd hooks if you hooked the drop command)
Example: es est_DropWeapon event_var(userid)
est_CExec - runs a much more powerfull client execute to a client (ignores aliased over commands and works on bots) (Syntax: est_CExec <identifier> <command>)
Example: est_CExec #b kill => bots don't deserve to live
Formatting Commands Usual syntax: est_* <cvar> <test string>
Formatting wrote:
est_IsAlpha - does the string only contain letters ? (1=true, 0=false)
est_IsNumeric - does the string only contains numbers and/or math symbols ? (1=true,0=false,operators allowed: . or -)
est_IsOnly - if test string only holds the specified letters (1=true,0=false) (Syntax: est_IsOnly <cvar> <test string> <string with allowed chars>)
est_StrLen - returns the length of the specified test string
est_StrTolower - converts the specified string to lowercase and stores it in the given cvar
est_StrToUPPER - converts the specified string to UPPERCASE and stores it in the given cvar
est_RoundDecimal - round a decimal to X places
est_TrimDecimal - trim a decimal to X places
EST Weapons Restrictions Usual syntax: est_* <identifier> [weapon name]
Identifiers list:
Same as usual, see above.
Weapons wrote:
est_restrict - restricts a particular weapon for a player (Syntax: est_Restrict <identifier> <weapon name>)
est_RestrictAll - restricts all weapons for a player (Syntax: est_RestrictAll <identifier>)
est_UnRestrict - un-restricts a particular weapon for a player (Syntax: est_UnRestrict <identifier> <weapon name>)
est_UnRestrictAll - un-restricts all weapons for a player (Syntax: est_UnRestrictAll <identifier>)
EST Hooking Commands Usual syntax: est_* <identifier> [hook type]
Say and Cmd hooks wrote:
Hook Types
0- will fire ONLY the EXACT text specified, anything else will be passed. (good for single word / exact commands, such as "help"
1- will fire anything that matches the length of the hook (good for admin commands and other input)
2- will fire anything that contains the hook string anywhere in the message (good for catching curses, advertisers, and other things that crop up randomly in messages)
est_ShowSayHooks - displays all say hooks in server console
est_ShowCmdHooks - displays all cmd hooks in server console
est_UnRegSayHook - removes a chat hook (Syntax: est_UnRegSayHook <hooked string>)
est_UnRegClientCMD - removes a cmd hook (Syntax: est_UnRegClientCMD <hooked command>)
est_RegSayHook - registers a chat hook to fire est_sayhook (Syntax: est_RegSayHook <string> [hook type])
Example: est_RegSayHook health 0 => if player types 'health' not followed by anything
Example: est_RegSayHook menu 1 => if player types 'menu' with eventually something else
Example: est_RegSayHook fck 2 => if player has typed 'fck' in his sentence
Then in your ES script file you could add an event block for 'est_sayhook' to do your actions:
Code:
event est_sayhook
{
//Available event_vars:
//event_var(userid) - userid of player who said the hooked word
//event_var(hooktext) - the word/text that was hooked
//event_var(commandstring) - if hook type = 1, what the player typed next to the hooked word
if(event_var(hooktext) = health) do
{
es_xsetinfo phealth 0
es est_GetHealth phealth event_var(userid)
es_tell event_var(userid) Your health: server_var(phealth)
}
else do
{
if(event_var(hooktext) = menu) do
{
if(event_var(commandstring) = players) do
{
es_xdoblock myscript/playersmenuorwhatever
}
}
else do
{
es_tell event_var(userid) event_var(hooktext) - That word is restricted
}
}
}
est_RegClientCMD - registers a client command hook to fire es_cmdhook (Syntax: est_RegClientCMD <command> [hook type])
Example: est_RegClientCMD drop 0 => if player tries to drop his gun
Example: est_RegClientCMD jointeam 1 => when player joins a team
Then in your ES script file you could add an event block for 'est_sayhook' to do your actions:
Code:
event est_cmdhook
{
//Available event_vars:
//event_var(userid) - userid of player who executed the command
//event_var(hooktext) - the command that was hooked
//event_var(commandstring) - if hook type = 1, this would be the commandstring
if(event_var(hooktext) = drop) do
{
es_tell event_var(userid) You're not allowed to drop your weapons !
}
else do
{
if(event_var(hooktext) = jointeam) do
{
if(event_var(commandstring) = 1) do
{
//Check for spectators
es_tell event_var(userid) You're not allowed to join the spectators
}
else do
{
//Otherwise set new team and spawn if not unassigned
es est_Team event_var(userid) event_var(commandstring)
if(event_var(commandstring) != 0) then es est_Spawn event_var(userid)
}
}
}
}
EST MISC. Commandsest_AddDownload - add a file to be forced downloaded by clients (Syntax: est_AddDownload <file path>) (cleared on map change)
est_CVarAddFlag - set new flags (dangerous command) (Syntax: est_CvarAddFlag <cvar> <FCVAR_GAMEDLL> <FCVAR_PROTECTED> <FCVAR_SPONLY> <FCVAR_NOTIFY> <FCVAR_CHEAT> <FCVAR_USERINFO> <FCVAR_UNLOGGED> <FCVAR_REPLICATED>)
est_CVarDelFlag - removes a flag (dangerous command) (Syntax: est_CvarDelFlag <cvar> <FCVAR_GAMEDLL> <FCVAR_PROTECTED> <FCVAR_SPONLY> <FCVAR_NOTIFY> <FCVAR_CHEAT> <FCVAR_USERINFO> <FCVAR_UNLOGGED> <FCVAR_REPLICATED>)
est_DeleteRagDolls - removes all ragdoll entities
est_SetAim - make a player aim at another player (Syntax: est_SetAim <userid> <aim at player (userid)> <add to z>)
est_Near - Loops through all players that have a designated flag within X leptons of a player (Syntax: est_Near <cvar to use as userid> <flag> <distance> <userid> <"Command String">)
est_NearCoord - Loops through all players that have a designated flag within X leptons of a coordinate (Syntax: est_NearCoord <cvar to use as userid> <flag> <distance> <x> <y> <z> <"Command String">)
est_Loop - Loops through all players Matching a flag (Syntax: est_Loop <cvar to use as userid> <flag> <"Command String">)
est_RandPlayer - Picks a Random player that meets flag requirements (Syntax: est_RandPlayer <cvar> <flag>)
est_TableList - display network string tables
est_Version - displays inf oabout current es_tools version
est_AllPInfo - shows all info on all players
est_LightStyle - changes the brightness of textures (Syntax: est_LightStyle <Style> <Brightness Index>)
est_PrintWeaponMod - Shows weapon mod for a weapon
est_Msg - send a chat message to a player or group matching a flag etc...(Syntax: est_Msg <identifier> <text>)
est_CSay - send a center message