Raised This Month: $ Target: $400
 0% 

15 new errors...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-10-2006 , 15:18  
Reply With Quote #9

I don't see a question? (at least one that will benefit anyone)

But if you're looking for it to be optimized, here:

Code:
#include <amxmodx> #include <amxmisc> public public_init() {     register_plugin ("Awp/Auto Slapper","0.1","Venomxtinct")     register_concmd ("amx_awpslap","do_slap",ADMIN_KICK," - <name> <health> - slaps user for health") } public do_slap(id,level,cid) {     if(!cmd_access(id,level,cid,3))     {         return PLUGIN_HANDLED     }         new user[32],health[4],ammo,clip,weap = get_user_weapon(id,clip,ammo)     read_argv(1,user,32)     read_argv(2,health,3)         new hp = str_to_num(health), uid = cmd_target(id,user,1)         if(weap == CSW_AWP)     {         weap = 1         user_slap(id,hp,1)     }     else if(weap == CSW_SG550 || weap == CSW_G3SG1)     {         weap = 0         user_slap(id,hp,1)     }         new name[2][32]     get_user_name(id,name[0],31)     get_user_name(uid,name[1],31)         switch(get_cvar_num("amx_show_activity"))     {         case 1 : client_print(0,print_chat,"[AMXX] %s has been slapped for %i health for having %s.",name[1],hp,weap ? "an autosniper" : "an AWP")         case 2 : client_print(0,print_chat,"ADMIN %s: slapped %s for %i health for having %s.",name[0],name[1],hp,weap ? "an autosniper" : "an AWP")     }         return PLUGIN_HANDLED }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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 15:46.


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