if weapon isnt knife, do stuff
PHP Code:
|
Re: if weapon isnt knife, do stuff
maybe
PHP Code:
|
Re: if weapon isnt knife, do stuff
I'm almost sure that weapon_knife should be CSW_KNIFE
u also could use that: new weapon = get_user_weapon(id, _, _); if(weapon == CSW_AWP) { //code } |
Re: if weapon isnt knife, do stuff
http://www.amxmodx.org/funcwiki.php?go=func&id=156
Note that since amxmox 1.8.xxx, clip and ammo are optional. You can now simply do : new weapon = get_user_weapon(id) //Here is how it works //Returns the number of the weapon, according to the cstrike CSW_ constants new iwpn, wclip, wammo switch(get_user_weapon(id,wclip,wammo)) { case CSW_AWP: client_print(id,print_chat,"awp") case CSW_SCOUT: client_print(id,print_chat,"scout") } |
Re: if weapon isnt knife, do stuff
PHP Code:
|
Re: if weapon isnt knife, do stuff
Player holding knife (current weapon)
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 02:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.