├── README.md ├── docs ├── index.htm └── stuff │ ├── accessenum.htm │ ├── afbasearguments.htm │ ├── afbaseclass.htm │ ├── afbuser.htm │ ├── cmd.png │ ├── cmdenum.htm │ ├── commands.htm │ ├── cvarsnthings.htm │ ├── doc.css │ ├── messages.htm │ ├── msg1.png │ ├── msg2.png │ ├── myext.png │ ├── nsafb.htm │ ├── players.htm │ ├── players.png │ ├── playertargetenum.htm │ ├── release.htm │ └── settingup.htm ├── models └── zode │ ├── p_entmover.mdl │ └── v_entmover.mdl ├── scripts └── plugins │ ├── AFBase.as │ ├── AFBase │ ├── AFBArgs.as │ ├── AFBEnums.as │ ├── AFBFileIO.as │ ├── AFBHandler.as │ ├── AFBStock.as │ ├── AFBUser.as │ ├── AFBUtil.as │ ├── AFBaseClass.as │ └── chlog.txt │ ├── AFBaseExpansions.as │ ├── AFBaseExpansions │ ├── AF2E │ │ └── entmover.as │ ├── AF2EKI.as │ ├── AF2Entity.as │ ├── AF2Fun.as │ ├── AF2Legacy.as │ ├── AF2Menu.as │ └── AF2Player.as │ └── store │ ├── AFBaseAccess.txt │ ├── AFBaseGagBans.txt │ ├── AFBaseIDBans.txt │ ├── AFBaseIPBans.txt │ ├── AFBaseSprayBans.txt │ └── AFBaseTags.txt ├── sound └── zode │ └── thunder.ogg └── sprites └── zode ├── blocker.spr ├── border.spr ├── rusher.spr ├── suspect.spr ├── troll.spr └── weapon_entmover.txt /README.md: -------------------------------------------------------------------------------- 1 | # AFBase 2 | AFB is based on AdminFuckery2 -- most of the commands have been ported over. 3 | This plugin allows server owners to easily setup access flags for admins & install expansions to the plugin (AMX-like functionality), it also allows for scripters to make more commands really fast. 4 | 5 | ## Quick installation guide: 6 | 1. download the repo 7 | 2. extract to /svencoop_addons/ or /svencoop/ folder 8 | (if you extracted to svencoop_addons: move contents from svencoop_addons/scripts/plugins/store/ to svencoop/scripts/plugins/store/) 9 | 3. insert AFBase into default_plugins.txt: 10 | ``` 11 | "plugin" 12 | { 13 | "name" "AFBase" 14 | "script" "AFBase" 15 | } 16 | ``` 17 | 4. open up AFBaseAccess.txt 18 | 5. Do either of these methods. 19 | 20 | Method A 21 | 1. add your steamid with the flag B or alternatively give yourself all the flags 22 | 2. as_reloadplugins & changelevel 23 | 3. (optional): if you didn't give yourself all the flags in step 5, run this command: .afb_access @me "+cdefghijklmnopqrstuvwyx" 24 | 4. done! 25 | 26 | Method B 27 | 1. connect to your server 28 | 2. in your svends server console, run: as_command .s_afb_access "NICKNAME OR STEAMID HERE" "+bcdefghijklmnopqrstuvwyx" 29 | 3. done! 30 | 31 | ## for scripters: 32 | "documentation" for extension scripting available [here](https://zode.github.io/AFBase/) 33 | 34 | ## for users: 35 | (new in 1.5.0) wildcarding works now from start, and both ways. You can use \*mpleUser, \*mple\* or Example\* to target "ExampleUser". Wildcards that result in multiple players wont be executed anymore. 36 | 37 | random values in keyvalue fields: you can use r#A-B to select a random value, for example: .player_keyvalue @me health r#30-60 would set your health to a random value between 30 and 60. 38 | 39 | svends server console can now issue AFB commands, syntax: as_command .s_(command), example: as_command .s_afb_help (prefix is needed due to AS implementation not allowing client/server command to exist with the same name, it is automatically added to any server command registered) 40 | 41 | (new in 1.5.0) cvar to bypass access file for those who want the system to behave in a binary way (is admin, or isnt admin): .afb_access_ignore 0/1, by default this value is 0 and AFB will use the access file. 42 | 43 | Keep an eye in this space, i might have forgotten something and might update this later :) 44 | 45 | ## Other stuff: 46 | use ".afb_help" to view all available commands! 47 | 48 | these commands are always available to everyone: 49 | ``` 50 | .afb_help 51 | .afb_who (wont show ip unless user has any flag from A to Y) 52 | .afb_info 53 | .afb_listextensions 54 | ``` 55 | 56 | Here is a full list of stock commands: 57 | ``` 58 | ] .afb_help 59 | ----AdminFuckeryBase help: Command list----------------------------------------- 60 | Quick quide: (arg) required parameter, optional parameter. Targets: @all, @admins, @noadmins, @alive 61 | @dead, @aim, @random, @last, @me, "nickname" (supports * wildcard), "STEAM_0:1:ID" 62 | -------------------------------------------------------------------------------- 63 | 1: admin_ban ("steamid") <"reason"> <0/1 ban ip instead of steamid> - ban target 64 | 2: admin_banlate ("steamid/ip") <"reason"> - late ban target, basically adds to ban list. Doesn't validate player like admin_ban does. 65 | 3: admin_blockdecals (target) (0/1 unban/ban) - Ban target from spraying 66 | 4: admin_changelevel (level) - change level 67 | 5: admin_gag (targets) (mode a/c/v) - gag player, a = all, c = chat, v = voice 68 | 6: admin_kick (target) <"reason"> - kicks target with reason 69 | 7: admin_rcon (command) - remote console 70 | 8: admin_say (0/1 showname) (0/1/2 chat/hud/middle) ("text") - say text 71 | 9: admin_slap (target) - slap target(s) 72 | 10: admin_slay (target) - slay target(s) 73 | 1: admin_ban ("steamid") <"reason"> <0/1 ban ip instead of steamid> - ban target 74 | 2: admin_banlate ("steamid/ip") <"reason"> - late ban target, basically adds to ban list. Doesn't validate player like admin_ban does. 75 | 3: admin_blockdecals (target) (0/1 unban/ban) - Ban target from spraying 76 | 4: admin_changelevel (level) - change level 77 | 5: admin_gag (targets) (mode a/c/v) - gag player, a = all, c = chat, v = voice 78 | 6: admin_kick (target) <"reason"> - kicks target with reason 79 | 7: admin_rcon (command) - remote console 80 | 8: admin_say (0/1 showname) (0/1/2 chat/hud/middle) ("text") - say text 81 | 9: admin_slap (target) - slap target(s) 82 | 10: admin_slay (target) - slay target(s) 83 | 11: admin_trackdecals <0/1 mode> - track player sprays, don't define mode to toggle 84 | 12: admin_unban ("steamid or ip") - unban target 85 | 13: admin_ungag (targets) - ungag player 86 | 14: afb_access (target) - get/set accessflags, add + or - before flags to add or remove 87 | 15: afb_disconnected <0/1 don't shorten nicks> - Show recently disconnected client information 88 | 16: afb_expansion_list - List expansions 89 | 17: afb_expansion_start ("expansion SID") - start expansion 90 | 18: afb_expansion_stop ("expansion SID") - stop expansion 91 | 19: afb_help <0/1 show expansion> - List available commands 92 | 20: afb_info - Show info 93 | 21: afb_last <0/1 don't shorten nicks> - (alias for afb_disconnected) Show recently disconnected client information 94 | 22: afb_menu - pop open a simple command menu 95 | 23: afb_peek (targets) - peeks into internal AFB info 96 | 24: afb_setlast (target) - sets last target, use if you only want to select somebody without running a command on them 97 | 25: afb_whatsnew - show changelog for this version 98 | 26: afb_who <0/1 don't shorten nicks> - Show client information 99 | 27: ent_bbox - show the ent's bounding box 100 | 28: ent_bboxname (targetname) - show the specified ent's bounding box 101 | 29: ent_create (classname) <"key:value:key:value:key:value" etc> - create entity, default position at your origin 102 | 30: ent_damage - damage entity, if no targetname given it will attempt to trace forwards 103 | 31: ent_drop - Drop entity that you are aiming at to ground 104 | 32: ent_dumpinfo - dump entity keyvalues into console, if no targetname given it will attempt to trace forwards 105 | 33: ent_grid (gridsize) - set a grid for snapping, 0 to disable 106 | 34: ent_item (weapon_/ammo_/item_ name) - Spawn weapon/ammo/item at your location 107 | 35: ent_keyvalue (key) - get/set keyvalue of entity you are aiming at, use "!null!" to set keyvalue as empty 108 | 36: ent_keyvaluename (targetname) (key) - get/set keyvalue of entity based on targetname, use "!null!" to set keyvalue as empty 109 | 37: ent_keyvaluerange (classname) (range) (key) - get/set keyvalue of entity based on classname and range, use "!null!" to set keyvalue as empty 110 | 38: ent_kill - removes entity, if no targetname given it will attempt to trace forwards 111 | 39: ent_move - Use without argument to see usage/alias - Grab entity and move it relative to you 112 | 40: ent_movecopy - Use without argument to see usage/alias - Copy & grab (copied) entity and move it relative to you 113 | 41: ent_movename (targetname) - absolute move, entity is placed to your origin 114 | 42: ent_mover <0/1 mode> - weapon_entmover, don't define mode to toggle 115 | 43: ent_rotate (x) (y) (z) - rotate entity, if no targetname given it will attempt to trace forwards. For best results use 15 increments 116 | 44: ent_rotateabsolute (x) (y) (z) - set entity rotation, if no targetname given it will attempt to trace forwards 117 | 45: ent_rotatefix - attempt to reset originless brush to default position 118 | 46: ent_show (x/y/z) - show world direction 119 | 47: ent_trigger - trigger entity, if no targetname given it will attempt to trace forwards 120 | 48: ent_triggerrange (classname) (range) - trigger entity based on classname and range 121 | 49: ent_worldcopy (speed) <0/1 reverse> <0/1 xaxis> <0/1 yaxis> - Create worldcopy 122 | 50: ent_worldremove - Remove all worldcopies 123 | 51: fun_conc (targets) (amplitude) (frequency) (fadetime) - CoNcUsSiOn! 124 | 52: fun_fade (targets) - fade target(s) screens! 125 | 53: fun_flash (targets) <0/1> - toggle or set target(s) flashlight 126 | 54: fun_fog (targets) (r) - set level fog, supply target(s) and -1 to disable 127 | 55: fun_gibhead (targets) - GIBS!!! Spawns head gib on target(s) 128 | 56: fun_gibrand (targets) - GIBS!!! Spawns random gibs on target(s) 129 | 57: fun_maplight (character from A (darkest) to Z (brightest), M returns to normal) - set map lighting 130 | 58: fun_shake - shake everyone's screen! 131 | 59: fun_shootgrenade