View Single Post
showdax
Senior Member
Join Date: Dec 2004
Old 12-13-2005 , 02:22  
Reply With Quote #2

Well, I'm kind of surprised no one has said anything about this, though I guess it's not that amazing. My little admin plugin does all of the following now:
Code:
"admin_slay"
 - <name> - Slays specified player(s)
"admin_slap"
 - <name> [amount] - Slaps specified player(s)
"admin_teleport"
 - <name> <x> <y> <z> - Teleports specified player(s)
"admin_model"
 - <name> <model> - Sets model of specified player(s)
"admin_freeze"
 - <name> <1/0/on/off> - Freezes or unfreezes specified player(s)
"admin_speedy"
 - <name> <1/0/on/off> - Possibly makes player(s) run faster
"admin_noclip"
 - <name> <1/0/on/off> - Enables or disables noclip for specified player(s)
"admin_url"
 - <name> <url> [hidden: 0/1] - Opens MOTD to specified URL for specified player(s)
"admin_item"
 - <name> <item> - Gives item to specified player(s)
"admin_spawn"
 - <name> - Respawns specified player(s)
And it works in CS:S, DOD:S and HL2:DM! I'm not even including baseentity.h or player.h, I just have those forward declarations.

I'm wanting to implement god-mode and weapon restrictions now though, but I'm not sure how to hook virtual functions without a class definition. I can get the address to the functions I want to hook, but what do I do after that? I'd really like to use SourceHook with this as well. I don't want to overwrite instructions in memory.
showdax is offline
Send a message via MSN to showdax