Raised This Month: $ Target: $400
 0% 

awp/autosniper replacer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 05-01-2006 , 01:28   awp/autosniper replacer
Reply With Quote #1

Code:
#include <amxmodx>   #include <amxmisc>   #include <fun>   public check_noobguns(id)   {       if(get_cvar_num("amx_nonoobguns") != 1 || !is_user_alive(id))           return PLUGIN_CONTINUE       new weap = read_data(1)       if(weap == 18 || weap == 24 || weap == 13)       {           new params[2]           params[0] = id           params[1] = weap                 set_task(0.1, "drop_noobguns", id , params , 2)       }           return PLUGIN_CONTINUE   }   public drop_awp(params[2])   {       new id = params[0]       new weap = params[1]       new origin[3]       get_user_origin(id, origin, 0)       origin[2] -= 2000       set_user_origin(id, origin)       switch(weap)       {           case 18: engclient_cmd(id, "drop", "weapon_awp")           }       give_item(id, "weapon_scout")       give_item(id, "ammo_762nato")       origin[2] += 2001       set_user_origin(id, origin)   }   public drop_g3sg1(params[2])   {       new id = params[0]       new weap = params[1]       new origin[3]       get_user_origin(id, origin, 0)       origin[2] -= 2000       set_user_origin(id, origin)       switch(weap)       {           case 13: engclient_cmd(id, "drop", "weapon_g3sg1")         }       give_item(id, "weapon_mac10")       give_item(id, "ammo_762nato")       origin[2] += 2001       set_user_origin(id, origin)   }   public drop_sg550(params[2])   {       new id = params[0]       new weap = params[1]       new origin[3]       get_user_origin(id, origin, 0)       origin[2] -= 2000       set_user_origin(id, origin)       switch(weap)       {           case 24: engclient_cmd(id, "drop", "weapon_sg550")         }       give_item(id, "weapon_tmp")       give_item(id, "ammo_762nato")       origin[2] += 2001       set_user_origin(id, origin)   }   public plugin_init()   {       register_plugin("Nonoobguns", "0.1", "Allenwr")       register_event("WeapPickup", "check_noobguns", "b")       register_cvar("amx_nonoobguns", "1")   }

i cant find the error(s) in my code, any one see why?
it compiles fine, but it doesnt work on my server
please help
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
 



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:12.


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