Whats the expressio for something like"except"?
If I want to let a player can only own Ak47,then how to check wether a player has other weapons ?
|
Re: Whats the expressio for something like"except"?
|
Re: Whats the expressio for something like"except"?
What should I do ?Sorry, but I really dont know,thx.
|
Re: Whats the expressio for something like"except"?
It depends on what you want to achieve.
If you want to check if player has any other weapon than AK (including knife and c4): PHP Code:
If you want to check if player has other weapon than AK (but let him have knife and C4): PHP Code:
|
Re: Whats the expressio for something like"except"?
:)THX!
|
Re: Whats the expressio for something like"except"?
But what dose the parameter"weapon" in the second stock bool mean?(stock : bool userHasOtherWeapons(id,weapon))And how I should use it if I want to strip weapons and give Ak47,knife and c4 when user has other weapons ? Thanks for your kindness .
|
Re: Whats the expressio for something like"except"?
Untested
PHP Code:
|
| All times are GMT -4. The time now is 19:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.