Raised This Month: $ Target: $400
 0% 

Need help with making my doomsday code!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 05-30-2006 , 10:45   Need help with making my doomsday code!
Reply With Quote #1

After the command is executed (amx_bdoomsday (user))
The banned.wad will be played and a say (message) will be executed in "SERVER" console and after 10 sec the user will be banned (amx_addban (user) 0)

I come back after 4 months and my brain is empty .

Please help me with this code. Anyone?


Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Ban till doomsday","1.0","AtomiC")     register_concmd("amx_bdoomsday","timer",ADMIN_BAN,"Perm bans the player") }  public timer(id, level, cid)  {          //help      set_task(10.0,"theban")      client_cmd(0,"spk misc/banned.wav")      server_cmd ("say (user) is getting banned till doomsday")  return PLUGIN_HANDLED }   public dday(id) {     if (!(get_user_flags(id)&ADMIN_BAN)) {         return PLUGIN_HANDLED     }     if (read_argc() == 0) {         console_print(id,"amx_bdoomsday 'user'")         return PLUGIN_HANDLED     }     new user[32], uid     read_argv(1,user,32)     uid = find_player("bh",user)     if (uid == 0) {         console_print(id,"Invalid User Id")         return PLUGIN_HANDLED     }     get_user_authid (uid)              //HELP MEEEEEEEEEEEEEEE     server_cmd ("amx_addban %s 0")     client_cmd ("disconnect")   return PLUGIN_CONTINUE } public plugin_precache()               // God sake i sux {     precache_sound("misc/banned.wav")       return PLUGIN_CONTINUE   }
Attached Files
File Type: zip sound.zip (414.6 KB, 113 views)
__________________
atomic is offline
 


Thread Tools
Display Modes

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 16:27.


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