Raised This Month: $ Target: $400
 0% 

add a flag check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-27-2020 , 11:54   Re: add a flag check
Reply With Quote #1

Do this:
PHP Code:
if ( get_user_health(id) > || get_cvar_num("mp_nadedrops") < || !has_flag(idFLAG_HERE) ) 
{
     return 
PLUGIN_CONTINUE;  

__________________
Bugsy is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-27-2020 , 11:58   Re: add a flag check
Reply With Quote #2

One more thing I don't understand @Bugsy, I think || represents "or", so why using or? I think it's logical to use && right?
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
jonny1990
Senior Member
Join Date: Apr 2020
Old 06-27-2020 , 12:05   Re: add a flag check
Reply With Quote #3

the plugin works but
1) drops two identical grenades
2) drops and those who do not have a flag
jonny1990 is offline
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 17:02.


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