Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Sniper Laser Gun [SLG]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-19-2010 , 05:38   Re: [ZP] Extra Item: Sniper Laser Gun [SLG]
Reply With Quote #7

If you are uncluding fun than instead of this:
Code:
stock ham_strip_weapon(id, weapon[]) { if(!equal(weapon,"weapon_",7))     return 0         new idd = get_weaponid(weapon)         if(!idd) return 0         new wEnt         while((wEnt = find_ent_by_class(wEnt, weapon)) && entity_get_edict(wEnt, EV_ENT_owner) != id) {}         if(!wEnt) return 0         if(get_user_weapon(id) == idd)         ExecuteHamB(Ham_Weapon_RetireWeapon,wEnt);         if(!ExecuteHamB(Ham_RemovePlayerItem,id,wEnt))         return 0         ExecuteHamB(Ham_Item_Kill, wEnt)         entity_set_int(id, EV_INT_weapons, entity_get_int(id, EV_INT_weapons) & ~(1<<idd))         return 1 }
Use strip_user_weapon from fun module bcoz it is more efficient and faster
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



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