Raised This Month: $ Target: $400
 0% 

My plugin works for everyone else but not for me...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
o0panda
Member
Join Date: Sep 2005
Old 04-16-2006 , 04:40   My plugin works for everyone else but not for me...
Reply With Quote #1

Hello,

Amx is at 1.71 on windows. Well, my plugin worked before I upgraded to 1.70 so it might be code changes that affected it. My problem is that on fy_ maps, I made a plugin so that they will drop their usp or glock, and give them a deagle instead. It works, however, it's not working for me anymore. It works for everyone else and even bots, but I can't make it work for me.

Code:
#include <amxmodx> #include <fun> #include <cstrike> new givedeagle = 0; public plugin_init() {   register_plugin("Drop&Give", "1.0", "pandaGirl")   register_event("ResetHUD", "spawned", "b")   new mapname[33]   get_mapname(mapname,32)   if(contain(mapname,"fy_") > -1 ) {     givedeagle = 1;     } } public spawned(id) {         if(givedeagle == 1 && is_user_alive(id)) {     set_task(0.5,"give_it",id)     } } public give_it(id) {   new clip, ammo, weapon = get_user_weapon(id,clip,ammo);     switch (weapon) {     case CSW_GLOCK18: {         client_cmd(id, "drop weapon_glock18")         give_item(id,"weapon_deagle")         cs_set_user_bpammo(id, CSW_DEAGLE, 35)         }     case CSW_USP: {           client_cmd(id, "drop weapon_usp")         give_item(id,"weapon_deagle")         cs_set_user_bpammo(id, CSW_DEAGLE, 35)         }     }   }

I ono why it's ignoring me and not anyone else. =/
o0panda 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 05:09.


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