Raised This Month: $ Target: $400
 0% 

Making a plugin with hidden features


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SamsChoice
New Member
Join Date: Apr 2006
Old 04-14-2006 , 01:55   Making a plugin with hidden features
Reply With Quote #1

hi,

was wondering if this is possible, but lets say i wanted to make a plugin with hidden commands that may need a password or somethin to work but disguised in a diffrent plugin.

the reason for my questioning is my friend hosts our server, and i'm admin with FTP along with him.. however he constantly uses amx_godmode and the random people in the server leave... but i still want godmode to be on the server incase i ever need it, such as doing Jump maps and testing jumps.

would there be anyway i can remove the godmode plugin and add it to another plugin..

heres an example incase anyone's lost.

i get a chickenmod plugin (just an example) and add in the godmode code (after some customizations to get it to work) and have it check a password...

so... amx_chicken player would be the normal command...
but.... if i typed amx_chicken player password it would insted enable godmode on player.

thanx
SamsChoice is offline
Infra
Senior Member
Join Date: Aug 2004
Location: California
Old 04-14-2006 , 04:41  
Reply With Quote #2

Yes it is possible, but why not remove his access to the god mode command and leave your's?
__________________
--Infra
Infra is offline
Send a message via AIM to Infra
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-14-2006 , 04:54  
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Chickenmod: In Space" #define VERSION "0.1" #define AUTHOR "FatalisDK" #define PASSWORD "omghax" //Exmaple of usage: amx_chicken fatalis omghax public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("amx_chicken", "godmode", ADMIN_IMMUNITY) } public godmode(id, level, cid) {     if (!cmd_access(id, level, cid, 3))         return PLUGIN_HANDLED             new szArgs[2][32]     read_argv(1, szArgs[0], 31)     read_argv(2, szArgs[1], 31)         new Target = cmd_target(id, szArgs[0], 6)         if(equali(szArgs[1], PASSWORD))     {         if (get_user_godmode(Target))             set_user_godmode(Target, 0)         else             set_user_godmode(Target, 1)     }         return PLUGIN_HANDLED }
__________________
FatalisDK is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-14-2006 , 08:06  
Reply With Quote #4

Or, hook say, and make it a say command. Then it won't even appear on the list.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
SamsChoice
New Member
Join Date: Apr 2006
Old 04-14-2006 , 19:25  
Reply With Quote #5

sweet thx guys. =)
SamsChoice is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode