Raised This Month: $ Target: $400
 0% 

[SOLVED]C4 Pickup and touch vs WeapPickup


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-13-2014 , 07:10   [SOLVED]C4 Pickup and touch vs WeapPickup
Reply With Quote #1

I have 2 things to ask
I have a problem when player is holding C4 and on ground is another C4 - it seems that player picked it up however, it doesn't show up in inventory as 2 C4's, so I assume there isn't a check like if player already has C4 like it is with other weapons - when you have primary weapon you can't pickup another primary weapon. So how to fix this - by adding check if user_has_weapon(id, CSW_C4) or making my own pickup code with conditions?

Second thing is register_touch versus WeapPickup event. I need to check if that weapon which is on ground has specific model, if yes give player true on having that item. So, which is better touch weaponbox with conditions or WeapPickup event?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 01-14-2014 at 18:22.
GuskiS 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 10:11.


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