This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Checking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KamiN
Senior Member
Join Date: Jun 2011
Old 01-01-2012 , 11:47   Checking
Reply With Quote #1

How to check if player is already having weapon_smokegrenade?
KamiN is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-01-2012 , 13:00   Re: Checking
Reply With Quote #2

user_has_weapon( )
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-01-2012 , 20:46   Re: Checking
Reply With Quote #3

PHP Code:
if(get_user_weapon(id) == CSW_SMOKEGRENADE) {
    
// Your code here

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-01-2012 , 22:05   Re: Checking
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
if(get_user_weapon(id) == CSW_SMOKEGRENADE) {
    
// Your code here

Could you please stop posting incorrect code / answers ?
This will only pass if the player is currently holding a sgnade, not when he has one in his backpack.

Also, OP has already been answered (with a correct solution) by Devil259.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 01-01-2012 at 22:05. Reason: grammar
drekes is offline
Send a message via MSN to drekes
Reply



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 21:56.


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