Raised This Month: $ Target: $400
 0% 

Making a plugin with hidden features


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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