Check || && problem
Hello to everyone who is willing to help me solve this thingy.
Code:
The problem is I cannot figure out how to add extra check for other weapons into this code. I want it to check not only for CSW_AWP but also for CSW_G3SG1 and CSW_SG550. For some reason it does not work like that Code:
Cheers. |
Re: Check || && problem
weapon is data 2.
This will check if player pick up one of the 3 awps PHP Code:
|
Re: Check || && problem
Code:
"drop_awp" did not get a chance to be executed; just removed "return". Thank you very much. |
Re: Check || && problem
updated
drop_awp is skipped when awp_user is true or when picked weapon is not an awp. |
Re: Check || && problem
I am not sure it is skipped, as I moved client_print to "drop_awp" and it is being printed, every time I pick up any weapon; although I force to drop only awps. Just deleted client_print for now, as it spams my chat.
Cheers. |
Re: Check || && problem
Thanks. Bad I am not allowed to give you +karma.
|
Re: Check || && problem
My bad, instead of read_data(2), must be (1<<read_data(2))
|
Re: Check || && problem
I hate to say that, but it did not change, if leave client_print, it would print every time I pick any weapon. Though I can leave without that message :)
I ques it is just a matter of principles, to get it to work 100%. Just a quick question. I don't want that nonVIP players would spend money on awps as they would drop those guns anyway. Is there a chance to block buy of just awps through buymenu. I would like to have that code in the same vipmenu plugin; however, it already handles one menu, would it interfere with hooking what menu player selected. Hope you understand what I am talking about. |
Re: Check || && problem
|
Re: Check || && problem
Code:
This is the part of the code that handles awps. Awp_user[id] is properly reset and checked. |
| All times are GMT -4. The time now is 11:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.