Raised This Month: $ Target: $400
 0% 

Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
s0upnazi
Member
Join Date: Mar 2006
Old 05-30-2006 , 23:28  
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {     register_plugin("Goodbye", "1.0", "s0upnazi")     register_concmd("amx_goodbye", "cmd_bye", ADMIN_KICK, "<target> <# of slaps> ")     register_cvar("mp_kick", "1")   } public slap_interval(id){     set_task(1.0, "cmd_bye", "a", 0.3) }   public cmd_bye(id, level, cid) {     if(!cmd_access(id, level, cid, 2))         return PLUGIN_HANDLED           new Arg1[24]     new Arg2[4]           read_argv(1, Arg1, 23)     read_argv(2, Arg2, 3)           new Slaps = str_to_num(Arg2)           new player = cmd_target(id, Arg1, 1)     if (!player)         console_print(id, "Whoever %s is could not be slapped!", Arg1)     else         for(new iCount = 0;iCount < Slaps;iCount++)             user_slap(player, 0)                         new bye = get_cvar_num("mp_kick")             if (bye != 0)                  server_cmd("kick #%d", player)                           return PLUGIN_HANDLED }

I edited it a little bit so that it will slap every 0.3 seconds and not all at once. Also added a cvar to kick, but I don't think I did it right. Hawk can you be my knight in shining armor again?
s0upnazi 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 16:19.


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