Allows your admins/donators to fake item drops, achievements, and more; and allows admins to force commands. Was there ever really a good reason to combine the two? I guess not, but oh well. FAKE AND FORCE!!!
NEW! Fake and Force Unlimited runs off of a config -- now, you can make your own fake messages and force your own commands!
Fake Command & Force Command /fakecmd - The server pretends the client ran the command. Example commands: kill, joinclass, any SourceMod command /forcecmd - Tries to actually force the command on the client. Example commands: retry, slot1, and a few more; type "findflags server_can_execute" in client console for a full list. Usage: /command <target> <fake/force command> [cmd arguments]
Fake Say & Fake Team Say
/fakesay, /fakesayteam Usage: /command <target> <words to say>
Force Taunt Usage: /forcetaunt <target>
INSTALLATION
1a. (Usual) Download fakeandforce.smx. Place it in your server's addons/sourcemod/plugins/ directory.
1b. (Compile-it-Yourself) If you want to compile the plugin yourself, you'll need More Colors. Don't forget it!
2. Download fakeandforce.txt, and place it in your server's addons/sourcemod/configs/ directory.
3. sm plugins load fakeandforce in server console or rcon. Done!
Want to make your own FaF commands? Open up fakeandforce.txt and check out the top part; it's loaded with information on how to use it. Sorry if it's a little much Reload the plugin to use your new commands.
UPDATES
Spoiler
2.0 December 17, 2013
Plugin rewrite: now entirely customizable!
Commands can now be set as usable by non-admins; they'll only be able to use the commands on themselves
Added "Collector's" item quality
Non-Unique item names no longer have the quality name in front of the item's name
sm_forcecmd is now sm_fakecmd, and sm_forcecmd2 is now sm_forcecmd. Sorry if this causes confusion! Of course, you can use the new config to change it back if you'd like.
Removed "event" based fake commands such as sm_fakehhh; they'll be back soon with their own type.
1.3.1 October 27, 2012
Added Fake Canteen (/fakecanteen) and Fake Buy Back (/fakebuyback)
Updated Haunted quality colour
Added cvar sm_fakeandforce_immunity, set to 1 to enforce immunity.
Added version cvar
Fake items aren't printed to clients with item messages off (press Y -> Filters -> Server Messages)
sm_fakeblock <defender> [Control Point name] - fakes the defense of a Control Point
sm_faketime <seconds> - fakes "time has been added" or removed (doesn't actually add time)
Added sm_forcecmd2, which uses ClientCommand instead of FakeClientCommand. if forcecmd doesn't work for a command, try forcecmd2. (e.g. thirdperson, slot1)
Added sm_forcevoice <target> <voice command id or name> - Fakes voice commands!
Added Community and Self-Made item qualities
Fake item commands now use actual item colours. Thanks to ReFlexPoison for finding them and reading them off to me while I inputted them. :>
You can now specify an invalid name (someone who's not actually on the server) for the <target> of fake item commands to use fake usernames
Fakequit now works with most custom disconnect messages
Fixed fakequit's command description stating that it makes clients invisible. It doesn't, and never will.
1.1 May 12, 2012
The fake commands now use TF2's new \x07 chat colour feature to colour item names
Prefixing an item name with Vintage, Strange, Genuine, Unusual, Haunted, or Valve changes the item's colour to the colour of that item quality
Yes, and as I said in the first post, Fake Item Messages looks real-er but doesn't have custom name support yet.
I love the idea...however I also run item logging Geit I think is the creator of this one and just as the other fake item plugin does it inserts a entry. I'd love to run this for just making up stuff for fun but then it will likely insert the wrong entries into that logger thus giving a error and require me to delete them from the SQL database each time used. SO I guess what I'm saying is, can it be altered to not add entries to the item logger?
I love the idea...however I also run item logging Geit I think is the creator of this one and just as the other fake item plugin does it inserts a entry. I'd love to run this for just making up stuff for fun but then it will likely insert the wrong entries into that logger thus giving a error and require me to delete them from the SQL database each time used. SO I guess what I'm saying is, can it be altered to not add entries to the item logger?
Item Logger hooks the item_found event; this plugin only sends fake chat messages. So it will never add entries.
Ok I like it just one request here... adjust the find,crafts etc all those things with the same colors/fonts as what the regular items display such as Yellow for unique as it is with item finder.
Ok I like it just one request here... adjust the find,crafts etc all those things with the same colors/fonts as what the regular items display such as Yellow for unique as it is with item finder.
I'd love to, but it looks like TF2 keeps the item colours to itself and doesn't let SourceMod use them, at least not with the easy \x0<number> method. Although I've seen servers that use purple/black text for their messages...one of those guys will have to tell me their secrets.
I'd love to, but it looks like TF2 keeps the item colours to itself and doesn't let SourceMod use them, at least not with the easy \x0<number> method. Although I've seen servers that use purple/black text for their messages...one of those guys will have to tell me their secrets.
It's actually impossible to use those colors without first displaying an "item found" message to the client. In easy words, you'd have to fire a fake "item found" event for every new client that joins, and then use the black color (since it's the one that changes to the color of the item found).