Raised This Month: $ Target: $400
 0% 

Help-Me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-29-2013 , 16:23   Re: Help-Me
Reply With Quote #7

First, fix the title.

is_user_alive(player) is not needed because of the "a" flag in get_players().
I would suggest adding "h" as a flag aswell.

Code:
            if (!get_pcvar_num(g_menu_active))                 return PLUGIN_CONTINUE             if(CurrentRound >= 1) // This will always return true.                 return PLUGIN_HANDLED
Both of these will break the loop and exit the function after one player receive these items. Is this what you want?

Why don't you explain what you want instead? It's hard to guess with these things.
__________________

Last edited by Black Rose; 08-29-2013 at 16:32.
Black Rose is offline
 



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 19:14.


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