Raised This Month: $ Target: $400
 0% 

Finding Entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-20-2012 , 12:41   Re: Finding Entity
Reply With Quote #10

No shouldn't check agains get_user_weapon, because player can hold his knife when he respawn.

If you want to check few specific weapons, you can check user_has_weapon().
If you want to check more than few, then use get_user_weapons and loop through retrieved list.

You can also use the method i used in there : http://forums.alliedmods.net/showthread.php?p=553846
But make sure you fully understand the code (and for any method you gonna use).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 06:18.


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