Performing multiple commands in an if/then statement
Hey.. Trying to get some help with the following code... (line 17) if(!invis[id]) I want to use get_user_weapon (i think) or whatever command I would need to determine if they are using a knife... so:
if invis is exec'd and the weapon is knife then perform the following functions: Code:
#include <amxmodx>-Kurt |
Re: Performing multiple commands in an if/then statement
new temp;
if ( ! invis[id] && get_user_weapon(id, temp, temp) == CSW_KNIFE ) |
Re: Performing multiple commands in an if/then statement
hopefully this helps:
Code:
public hook_goinvis(id) |
Re: Performing multiple commands in an if/then statement
Code:
#include <amxmodx> |
Re: Performing multiple commands in an if/then statement
Thanks you much, that worked with a small amount of tweaking. much thanks
-Kurt |
| All times are GMT -4. The time now is 11:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.