Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2008-04-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 15, 2008, 11:55:28 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Current Topic Rating: ***** You have not rated this topic. Select a rating:
Author Topic: Helpful ES , EST , MANI and WCS  (Read 639 times)
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« on: September 17, 2007, 11:11:53 PM »

I still use these on my desktop:

Handy to keep around like a reference section of your coding folder. Here are the attachments and expanded versions

 est_commands.txt (19.96 KB - downloaded 97 times.)
 WCS_MANI_COMMANDS.txt (4.87 KB - downloaded 96 times.)
 escommands.txt (10.92 KB - downloaded 74 times.)
« Last Edit: September 17, 2007, 11:17:24 PM by [Oddity]TeacherCreature » Logged

 
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #1 on: September 17, 2007, 11:12:52 PM »

EST COMMANDS


est_GetArmor - stores a player's armor value
Example: es est_GetArmor myvar event_var(userid)

est_GetChat - stores a player's latest chat message
Example: es est_GetChat myvar event_var(userid)

est_GetGravity - stores a player's gravity ratio (default = 1)
Example: es est_GetGravity myvar event_var(userid)

est_GetKills - stores a player's kills count
Example: es est_GetKills myvar event_var(userid)

est_GetDeaths - stores a player's deaths count
Example: es est_GetDeaths myvar event_var(userid)

est_GetGun - stores a player's active weapon (like weapon_knife)
Example: es est_GetGun myvar event_var(userid)

est_GetAmmo - stores a player's ammo reserve for the active gun (Syntax: est_GetAmmo <cvar> <userid> <weapon slot/name>)
Example: es est_GetAmmo myvar event_var(userid)

est_GetWeaponIndex - stores a player's weapon index for the specified slot/weapon name( Syntax: est_GetWeaponIndex <cvar> <userid> <weapon slot/name> ( slots: 1 (primary) / 2 (secondary) / 3 (knife) / 4 (grenades) ))
Example: es est_GetWeaponIndex myvar event_var(userid)

est_GetPrimary - stores a player's primary weapon (like weapon_m4a1)
Example: es est_GetPrimary myvar event_var(userid)

est_GetSecondary - stores a player's secondary weapon (like weapon_deagle)
Example: es est_GetSecondary myvar event_var(userid)

est_GetHE - 0/1 whether the player has/doesn't have a HE grenade
Example: es est_GetHE myvar event_var(userid)

est_GetSG - 0/1 wether the player has/doesn' have a SMOKE grenade
Example: es est_GetSG myvar event_var(userid)

est_GetFB - 0/1/2 depending on how many FLASHBANG grenades the player has
Example: es est_GetFB myvar event_var(userid)

est_GetUserID - stores a player's userid
Example: es est_GetUserID myvar server_var(partofusername)

est_GetName - stores a player's name
Example: es est_GetName myvar event_var(userid)
Example: es est_GetName myvar server_var(partofusername)

est_GetIP - stores a player's IP address
Example: es est_GetIP myvar event_var(userid)

est_GetIndex - stores a player's index
Example: es est_GetIndex myvar event_var(userid)

est_GetSteam - stores a player's steamid
Example: es est_GetSteam myvar event_var(userid)

est_GetTeam - stores a player's team number ( 0 (unassigned) / 1 (spectator) / 2 (terrorist) / 3 (counter-terrorist) )
Example: es est_GetTeam myvar event_var(userid)

est_GetEscort - stores how many hostages the player is currently escorting to the rescue zone
Example: es est_GetEscort myvar event_var(userid)

est_GetRescue - stores how many hostages the player has rescued
Example: es est_GetRescue myvar event_var(userid)

est_GetViewAngle - returns the angle the player is looking at (Syntax: est_GetViewAngle <userid> <pitch var> <yaw var> <roll var>
Example: es est_GetViewAngle event_var(userid) pitchvar yawvar rollvar

est_GetViewCoord - returns the coordinates of the point the player is looking at (Syntax: est_GetViewCoord <userid> <var for x> <var for y> <var for z>)
Example: es est_GetViewCoord event_var(userid) xvar yvar zvar

est_GetViewPlayer - if the player is looking at another player, returns that player userid, otherwise returns 0 (Syntax: est_GetViewPlayer <userid> <cvar>
Example: es est_GetViewPlayer event_var(userid) myvar

est_GetViewProp - returns the index of the entity the player is looking at (just works better than !picker). This also works on players. (Syntax: est_GetViewProp <userid> <cvar>)
Example: es est_GetViewProp myvar event_var(userid) myvar

est_GetAngleToPoint - returns the angle needed to make a user look at a point (Syntax: est_GetAngleTopoint <userid> <x> <y> <z> <pitch var> <yaw var> <roll var> )
Example: es est_GetAngleToPoint event_var(userid) server_var(xpos) server_var(ypos) server_var(zpos) pitchvar yawvar rollvar

est_HasDefuser - 1/0 whether the player has/doesn't have a defuser
Example: es est_HasDefuser myvar event_var(userid)

est_HasHelmet - 1/0 whether the player has/doesn't have a helmet (0 for only kevlar)
Example: es est_HasHelmet myvar event_var(userid)

est_HasKevlar - 1/0 whether the player has/doesn't have a kevlar (0 for kevlar AND helmet)
Example: es est_HasKevlar myvar event_var(userid)

est_IsAlive - 1/0 whether the player is alive/dead
Example: es est_IsAlive myvar event_var(userid)

est_IsBomber - 1/0 whether the player has/doesn't have the C4
Example: es est_IsBomber myvar event_var(userid)

est_KnifeOnly - 1/0 whether the playr only has a knife or not (C4 allowed, grenades not allowed)
Example: es est_KnifeOnly myvar event_var(userid)

est_GameStarted - 1/0 false on round_end, nav_generate, or map end fires, true on round_freeze_end (Syntax: est_gamestarted <cvar>)
Example: es est_GameStarted myvar

est_Rescued - get how many hostages were rescued this round (Syntax: est_rescued <cvar>)
Example: es est_Rescued myvar

est_UpTime - get server up time in seconds (Syntax: est_UpTime <cvar>)
Example: es est_UpTime myvar

est_pinfo - gshow all info on a player
Example: es est_pinfo event_var(userid)

 

Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #2 on: September 17, 2007, 11:14:40 PM »

EST SET COMMANDS


Usual 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. Commands

est_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 
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #3 on: September 17, 2007, 11:15:55 PM »

MANI ADMIN COMMANDS


ma_help- shows commands
ma_aban_name- bans people by name example: you ban Fluffy anyone with there name fluffy will be kicked from the server only good if you do not like the name other than that they can change there name
ma_admin- shows admins for your server
ma_akick_ip- kicks person by there ip
ma_akick_name- kick someone by there name
ma_akick_steam- kick someone by there steam
ma_ashow_ip- shows someones ip
ma_ashow_name- shows someones name usless i think
ma_ashow_steam- shows someones steam id
ma_balance- balance out the teams
ma_ban- ban someones steam id
ma_banip- ban someones ip
ma_beacon- put a beacon on someone
ma_blind- blind someone
ma_browse- i have no idea
ma_burn- burn someeone
ma_cexec- choose a file for it top  run
ma_cexec_all- runs all files in cfg
ma_cexec_ct- no idea
ma_cexec_spec- no idea
ma_cexec_t- no idea
ma_chat- talk
ma_chattriggers- no idea
ma_client- for admins client.txt
ma_clientgroup- for admins client.txt
ma_color- no idea
ma_color_weapon- change your wep color
ma_colour- no idea
ma_colour_weapon- change your wep color
ma_config- reaload you mani config
ma_csay- talk in chat
ma_decal- no i dea
ma_dropc4- force player to drop C4
ma_drug- drug a player
ma_effect- no idea
ma_endobserve- no idea
ma_exit- close out of game
ma_favourites- no idea
ma_firebomb- change someone into a fire bomb
ma_freeze- freeze someone
ma_freezebomb- chnage s omeone into a freeze bomb
ma_give- give someone a weapon example: ma_give fluffy weapon_m4a1
ma_give_ammo- give someone ammo
ma_giveammo- give someone ammo
ma_givecash- give someone cash
ma_givecashp- give someone cash
ma_givehealth- give someone health
ma_givehealthp- give someone health
ma_gravity- change gravity 1-800
ma_help- pops up commands
ma_kick- kick a player
ma_knives- kinves only
ma_listmaps- shows your maps
ma_map- change map example ma_map glass_z0mg_dude
ma_mapcycle- shows your map cycle
ma_maphistory- shows what maps you have played
ma_maplist- shows your map list
ma_msay- talk in chat
ma_mute- mute player
ma_nextmap- change to next map on mapcycle
ma_noclip- turn someone no clip
ma_nosnipers- take out snipers scout/awp/autos
ma_observe- observer someone
ma_offset- no idea
ma_offsetscan- no idea
ma_offsetscanf- no idea
ma_pistols- pistols only
ma_play- get out of spec
ma_plranks- shows ranks
ma_pmess- no idea
ma_position- shows ranks
ma_psay- talk in admin shortcut @ lol
ma_ranks- shows top 10
ma_rates- rates for server
ma_rcon- if you have rcon
ma_reloadclients- reloads admin list
ma_render_fx-  no idea
ma_render_mode- no idea
ma_resetrank- resets someones rank
ma_restrict- restrict a item
ma_restrictall- restrict everything but knife
ma_restrictratio- i have idea but hard to explain
ma_saveloc- save postion
ma_say- talk in chat
ma_session- no idea
ma_setcash- change someones cash
ma_setflag- no idea
ma_sethealth- change someones health
ma_setnextmap- change the next map you want
ma_setskin- change someones skin example ma_setskin fluffy admin_ct
ma_shotguns- shotguns only
ma_showrestrict- show whats weps are restricted
ma_showsounds- shows what sounds you have on server
ma_skipmap- skip the next map to the next next map
ma_slap- slap a player
ma_slay- slay a player
ma_spec- spec a player
ma_spray- spray a item
ma_statsme- shows your sats
ma_swapteam- swap someone to opposite team
ma_swapteam_d- d stands for ct or t
ma_takecash- take someones cash
ma_takecashp- take someones cash
ma_takehealth- take someones health
ma_takehealthp- take someones health
ma_teamindex- no idea
ma_teleport- teleport to saved location
ma_timebomb- turn someone into a time bomb
ma_timeleft- how much time left in map
ma_tklist- shows whos TKed
ma_unauto_ip- un ban someones ip
ma_unauto_name- un ban someones name
ma_unauto_pname- un bans someones name
ma_unauto_steam- un bans someones steam
ma_unban- someone
ma_unrestrict- unrestrict a wep
ma_unrestrictall- unrestrict all weps
ma_users- users who have been on server
ma_vote- call a vote
ma_votecancel- cancle a vote
ma_voteextend- extend a vote
ma_votemaplist- make a list of maps to vote for
ma_votequestion- make a question for people to vote for
ma_voterandom- random map vote
ma_votercon- no idea
ma_war- make it a deathmatch

and for people who have read this whole thing typing admin in console will help you with half of these commands.

WCS Commands
wcs_reload 0/all/db/config/subscripts     0 means all
wcsadmin
wcs_admin1_menu <userid>
wcs_admin2_menu <userid> <targetid>
wcs_givecredits <userid> <amount> <reason> <forced>
wcs_say <user|team|world> <text> <userid>
wcs_checkevents <userid> <type>
wcshelp or warcraft
wcs_menuzero  resets menu
savexp save xp
feedback   feedback
wcs_flash <userid> <targetid>
bindmouse3 Binds the ultimate on the mouse3 button
btw why it doesn't work always? es_cexec doesn't work anymore?
wcsmenu
wcs_removefx <userid> <type> - Takes an effect from a player (type: freeze, speed, god)
wcs_giveitem <id> <item name> - Gives a custom item, checks for death and stacks grenades
wcs_explode <userid> <targetid> <magnitude> <radius>
wcs_dealdamage - usage: wcs_dealdamage <userid> <targetid> <damage>
wcs_saveplayer save player to DB
wcs_getplayer get the player record from the DB
levi    Re-activate your levitation (used after climbing ladders)
wcs_givexp - usage: wcs_givexp <userid> <amount> <reason> <forced>
wcs_givelevel - usage: wcs_givelevel <userid> <amount> <reason> <forced>
wcs_showxp - usage: wcs_showxp <userid>
showxp Shows your current XP and level
wcs_deathhandle Checks for death events
ultimate  Executes an ultimate skill
ability  Command for special abilities
wcs_deathhandle2   Cleanup events
wcs_checkskills - usage: wcs_checkskills <userid> <type>
wcs_skillcheck - usage: wcs_skillcheck <userid>
wcs_race_menu - usage: wcs_race_menu <userid>
wcs_showraceinfo  Shows detail info about races
changerace  Change your race
raceinfo  Shows detail info about races
wcs_shop_menu - usage: wcs_shop_menu <userid>
wcs_shop_menu2 - usage: wcs_shop_menu2 <userid> <category>
wcs_giveshopitem - usage: wcs_giveshopitem <userid> <itemid>
wcs_showshopinfo  Shows detail info about the shop items
shopinfo  Shows detail info about the shop items
shopmenu  Opens the shopmenu
wcstop  shows top10
showtop10  same
wcs_showtop10  same
wcs_top10switch  Switches two places in top10
wcs_checktop10  Checks if a player goes in top10
wcs_cleartop10  Clears the top10 (not the player levels)
« Last Edit: September 19, 2007, 11:38:08 PM by [Oddity]TeacherCreature » Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #4 on: September 17, 2007, 11:16:44 PM »

ES COMMANDS

"es_xgetargv"
 - Gets the command parameter passed to the current ES console command.
"es_xsetinfo"
 - Adds a new server/global variable.
"es_xset"
 - Adds/sets a new server/global variable.
"es_xif"
 - Allows you to conditionalize a script line.
"es_xdoblock"
 - Executes a block.
"es_xgetargs"
 - Gets the commandstring passed to the current ES console command.
"es_xformatv"
 - Allows you to format a string by filling in a list of strings into a format string.
"es_xgetargc"
 - Gets the count of parameters passed to the current ES console command.
"es_xfire"
 - Fires an entity trigger.
"es_xdbgmsg"
 - Prints a debug message for EventScripts
"es_xdelayed"
 - Will run <commandstring>, after <seconds> seconds.
"es_xkeysetvalue"
 - Sets a value within a given key (where the key could be free-floating or associated with a group).
"es_xkeygetvalue"
 - Gets a value within a given key (where the key could be free-floating or associated with a group).
"es_xsetindexprop"
 - Sets a server class property for the given entity index
"es_xsetplayerprop"
 - Sets a server class property for the given player
"es_xcreateentitylist"
 - Creates a keygroup for an entity class or for all entities.
"es_xcreateplayerlist"
 - Creates a new keygroup containing the current list of players.
"es_xelse"
 -    es_xelse <any typical script line>
Executes the line if the previous 'if' call returned false.
 Does NOT support expansion of EventScripts variables.
"es_x_foreachval"
 - EXPERIMENTAL. Loops through a keygroup and performs a single command on each key, providing a single variable with the key name.
"es_x_foreachkey"
 - EXPERIMENTAL. Loops through a keygroup and performs a single command on each key, providing a single variable with the key name.
"es_xgetcmduserid"
 - Gets the userid of the user that executed the command.
"es_xtrick"
 - Miscellaneous tricky things.
"es_xgive"
 - Gives the player a named item.
"es_xentcreate"
 - Creates an entity where a player is looking.
"es_xprop_dynamic_create"
 - See prop_dynamic_create for syntax, but requires a userid first
"es_xprop_physics_create"
 - See prop_physics_create for syntax, but requires a userid first.
"es_xmath"
 - EventScripts math functions, courtesy of Cr3V3TT3
"es_xexists"
 - Checks whether a keygroup, keys, variable, or function exists.
"es_xdbgmsgv"
 - Prints a debug message for EventScripts
"es_xlog"
 - Logs a message to the server log.
"es_xmsg"
 - Broadcasts a message to all players. Will not expand any EventScripts variables. If the first word of the message is 'GREEN', or 'LIGHTGREEN' then the message is displayed in that color.
"es_xtell"
 - Sends HUD message to one player. If the first word of the message is '#green', or '#lightgreen' then the message is displayed in that color.
"es_xlogq"
 - Logs a message to the server log. Will not expand any EventScripts variables. Allows quotes.
"es_xlogv"
 - Logs the text inside of a variable.
"es_xcommandv"
 - Just runs a command-string inside of the variable.
"es_xformat"
 - Allows you to format a string by filling in a list of strings into a format string.
"es_xgettime"
 - Stores the server time in a variable.
"es_xgettimestamp"
 - Stores a timestamp in seconds in a variable. gettimestamp provides a shorter timestamp only for comparing against other es_gettimestamp values.
"es_xgetmoney"
 - Stores the player's money value in a variable. (CS:S only)
"es_xcopy"
 - Reads the server variable referenced by varname2 and copies it into the variable referenced by varname.

"es_xscriptpacklist"
 - Lists the script packs running on the server. If a userid is provided, will es_tell the list to the user.
"es_xgetuserid"
 - Looks-up a userid based on the string provided. Checks it against a userid, steamid, exact name, and partial name. (Based on Mani's algorithm.)
"es_xstring"
 - EventScripts string functions, experimental support originally written by Cr3V3TT3
"es_xtoken"
 - Set a variable to a particular token in the string.
 Syntax: es_xtoken <variable> <string> [token#] [tokenchar]
"es_xrand"
 - Syntax : es_rand <cvar> <minimum> <maximum>
"es_xkeygroupcreate"
 - Creates a keygroup that can be loaded and saved to a file. Must call es_keygroupdelete to free this memory!
"es_xkeygroupdelete"
 - Deletes a keygroup from memory so that it's not leaked.
"es_xkeygrouprename"
 - Renames an existing keygroup.
"es_xkeylist"
 - Lists all key values in memory that aren't groups. Optionally can look up a group, if you provide one.
"es_xkeygroupcopy"
 - Copies a keygroup.
"es_xkeygroupload"
 - Loads a keygroup from file based on its name.
"es_xkeygroupsave"
 - Saves a keygroup to a file based on its name.
"es_xkeycreate"
 - Creates a key that can be free-floating or associated with a group. Must call es_keydelete to free this memory when you're done.
"es_xkeydelete"
 - Deletes a key from memory so that it's not leaked when you're done with it.
"es_xkeygroupfilter"
 - Deletes keys from a keygroup that match or don't match a certain value.
"es_xkeyrename"
 - Rename a key.
"es_xgetclientvar"
 - Reads a console variable from a given player.
"es_xforeachval"
 - EXPERIMENTAL. Loops through a keygroup and performs a single command on each key, providing a single variable with the key name.
"es_xforeachkey"
 - EXPERIMENTAL. Loops through a keygroup and performs a single command on each key, providing a single variable with the key name.
"es_xgetplayercount"
 - Stores the count of players on the server into a variable. Optionally a team can be specified. Returns -1 on error.
"es_xgetlivingplayercount"
 - Stores the count of living players on the server into a variable. Optionally a team can be specified. Returns -1 on error.
"es_xgettimestring"
 - Stores the server time string in a variable.
"es_xtoptext"
 - Sends HUD message to one player.
"es_xgetplayermovement"
 - Stores the player's current forward movement value, side movement value, and upward movement value (in 3 different variables).
"es_xcreatevectorfrompoints"
 - Creates a vector-string that goes from point/vector A to point/vector B.
"es_xcreatevectorstring"
 - Creates a string form of three x y z variables representing a vector.
"es_xsplitvectorstring"
 - Stores the vector's current x, y, and z as read from the vector in string form.
"es_xgetplayerlocation"
 - Stores the player's current x, y, and z location (in 3 different variables).
"es_xisbot"
 - Checks a userid to see if it's a bot, stores 1 in the variable if so, 0 if not.
"es_xcexec_all"
 - Forces all users to execute a command in their console.
"es_xcexec"
 - Forces a userid to execute a command in their console.
"es_xforcevalue"
 - Forces a variable to a particular value
"es_xflags"
 - Adds or removes the cheat flag from a command or variable. (EXPERIMENTAL/UNSUPPORTED)
"es_xsexec"
 - Forces a userid to execute a command on the server console (bypassing client console).
"es_xsexec_all"
 - Forces all users to execute a command on the server console.
"es_xloadevents"
 - Reads an event file and registers EventScripts as a handler for those events.
"es_xgetplayername"
 - Stores the player's name in the variable.
"es_xgetplayersteamid"
 - Stores the player's STEAMID in the variable.
"es_xgetplayerteam"
 - Stores the player's team # in the variable.
"es_xgetentityindex"
 - Gets the index for the first named entity found by that name. Returns -1 if not found.
"es_xmexec"
 - Runs an exec file from memory.
"es_xcreatescriptlist"
 - Creates a new keygroup containing the current list of players.
"es_xload"
 - Loads a script or lists all loaded scripts if no script is provided.
"es_x_unload"
 - EventScripts internal command.
"es_xreload"
 - Reloads a script that is loaded.
"es_xunload"
 - Unloads a script that has been loaded.
"es_x_disable"
 - EventScripts internal command.
"es_xdisable"
 - Disables a script that has been loaded.
"es_xenable"
 - Enables a script that has been loaded.
"es_x_findoffset"
 -
"es_xgetplayerprop"
 - Gets a server class property for a particular player
"es_xgetindexprop"
 - Gets a server class property for a particular entity index
"es_xemitsound"
 - Plays a sound from an entity.
"es_xplaysound"
 - Plays a sound to a player.
"es_xprecachemodel"
 - Precache a model and return its index.
"es_xprecachesound"
 - Precache sound.
"es_xgetplayerhandle"
 - Gets the handle for a player class property using an entity handle (Untested)
"es_xentsetname"
 - Names the entity the player is looking at. (DOES NOT SET PLAYER NAME)
"es_xremove"
 - Removes an entity class
"es_xsetpos"
 - Teleports a player.
"es_xsetang"
 - Sets player view angle.
"es_xstrcmp"
 - Compares two strings.
"es_xstrlen"
 - Returns the length of a string.
"es_xdumpserverclasses"
 - Dumps to the console all server classes.
"es_xmakepublic"
 - Makes a console variable public such that changes to it are announced to clients.
"es_xdumpentities"
 - Dumps to console all server classes and properties for all entities.
"es_xmenu"
 - Sends an AMX-Style menu to the users
"es_xsoon"
 - Adds a command to the end of the command queue.
"es_xcreatebot"
 - Adds a bot to the server.
"es_xfadevolume"
 - Fades the volume for a client.
"es_xlightstyle"
 - Set light style.
"es_xbotsetvalue"
 - Sets a convar value for a fake client.
"es_xstringtable"
 - Update an entry in a stringtable
"es_xdumpstringtable"
 - Update an entry in a stringtable
"es_xusermsg"
 - Update an entry in a stringtable
"es_xstopsound"
 - Stops a specific sound for a player.
"es_xgetgame"
 - Returns the name of the Source game being played.
"es_xchangeteam"
 - Returns the name of the Source game being played.
"es_xsetview"
 - Adds a console command that refers to a particular block.
"es_xregcmd"
 - Adds a console command that refers to a particular block.
"es_xregex"
 - Various regular expression commands.
"es_xmathparse"
 - Adds a say command that refers to a particular block.
"es_xunregsaycmd"
 - Removes a say command that refers to a particular block.
"es_xunregclientcmd"
 - Removes a client command that refers to a particular block.
"es_xregsaycmd"
 - Adds a say command that refers to a particular block.
"es_xregclientcmd"
 - Adds a client command that refers to a particular block.
"es_xeffect"
 - Performs a particular effect.
"es_xqueryclientvar"
 - Sends a request to query a client's console variable.
"es_xevent"
 - Create and fire events to signal to plugins that an event has happened. It must be an event loaded via es_loadevents.
"es_xnq"
 - Remove quotation marks.
   usage: es_xnq <command string>
This will execute <command string> after removing quotation marks. WARNING: Removes all quotation marks.
"es_xcentermsg"
 - Broadcasts a centered HUD message to all players.
"es_xcentertell"
 - Sends a centered HUD message to all players.
"es_xsql"
 - Local database support
"es_xdosql"
 - Does some SQL.
"es_xformatqv"
 - Allows you to format a string by filling in a list of strings into a format string
Logged

Stinkyfax
Watchdogs
Level 7 Expert
*****
Offline Offline

Lithuania Lithuania

Posts: 1054



WWW
Xrushiov
« Reply #5 on: September 18, 2007, 07:49:55 PM »

Very useful topic, but not all wcs commands.
wcs_dealdamage
wcs_removefx etc.
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #6 on: September 18, 2007, 11:46:57 PM »

Yea I dont know any WCS commands I always use es and est
Logged

kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1097



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #7 on: September 19, 2007, 10:42:37 AM »

yes sry...I have no complete list of all WCS commands yet, because some of them will change or be added soon.

just check every file of WCS es_*.txt
at the header you see the infos whats in this file and all commands
so eg. if you want to know how you can modify the XP, you should check wcs/WCSfunctions/WCSxp/es_WCSxp.txt
Also you find many functions in wcs/WCSfunctions/es_WCSfunctions.txt, like wcs_dealdamage, wcs_explode, wcs_flash
Logged

(click to show/hide)
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #8 on: October 08, 2007, 12:54:38 AM »

WCS commands added
Logged

Zero Skillz
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 515




Zero Skillz (<-[SD]->madcow)
madcow767
« Reply #9 on: January 24, 2008, 03:18:19 AM »

hey.... heres a great way to get wcs commands,
go to consol type rcon cvarlist wcs_ or est_ etc...
also is there a way to code it so that you store someones speed then make it set it back to that, so like est_getspeed, est_speed userid 2, est_speed stored speed?
its not the coding but kinda the layout i want.. is it possible?
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #10 on: January 27, 2008, 06:17:02 PM »

yea kinda like the way boots fo speed work
Logged

Zero Skillz
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 515




Zero Skillz (<-[SD]->madcow)
madcow767
« Reply #11 on: January 27, 2008, 06:53:58 PM »

Figured it out XD... you store it as wcs_tmp so its like est_getgravity wcs_tmp event_var(userid). now your variable is wcs_tmp.. thanks to holliday btw.
Logged

fps_vengeance
Level 0 Beginner

Offline Offline

New Zealand New Zealand

Posts: 1



« Reply #12 on: March 27, 2008, 04:17:20 AM »

hi
um how do u use rcon to give wcs levels to more than 1 player?

say for all terror

rcon wcs_givelevel #t 10?

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 14, 2008, 08:47:37 PM
Seconds u there
April 14, 2008, 06:57:57 PM
Ty see u there
April 13, 2008, 11:00:29 PM
@overfinch123, your application has been accepted
April 13, 2008, 10:10:47 PM
ESELADDEN I entered your WCS tournament i left a reply want me to send itt to you?
April 13, 2008, 10:09:54 PM
Eseladden u there?
April 13, 2008, 08:30:55 AM
WCSUsers db file, move that file
April 13, 2008, 06:24:38 AM
Hey guys how do I move levels to another server?
Recent
[Today at 11:21:51 PM]

[Today at 09:22:37 PM]

[Today at 08:18:30 PM]

by West
[Today at 08:14:12 PM]

by Jeff
[Today at 06:51:25 PM]

[Today at 06:08:09 PM]

[Today at 06:03:36 PM]

[Today at 05:50:59 PM]

[Today at 04:20:36 PM]

[Today at 02:50:39 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.076 seconds with 26 queries.