Raised This Month: $ Target: $400
 0% 

Solved Events when player drop gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-22-2017 , 20:16   Re: Events when player drop gun
Reply With Quote #1

PHP Code:
register_clcmd("drop""cmdDrop"
PHP Code:
public cmdDrop(id)
{
    if(
get_user_weapon(id) == CSW_M249)
    {
        if(
g_pWeaponA[id])
        {
            
g_pWeaponA[id] = false
        
}
    }

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-22-2017 at 21:45.
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-22-2017 , 21:11   Re: Events when player drop gun
Reply With Quote #2

Quote:
Originally Posted by EFFx View Post
PHP Code:
register_clcmd("drop""cmdDrop"
PHP Code:
public cmdDrop(id)
{
    if(
get_user_weapon(id) & CSW_M249)
    {
        if(
g_pWeaponA[id])
        {
            
g_pWeaponA[id] = false
        
}
    }

Get_user_weapon dosent return abitsum value its return an integer value so instead of & use ==
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 18:02.


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