Raised This Month: $ Target: $400
 0% 

stop the count when reached the number


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-22-2009 , 04:29   Re: stop the count when reached the number
Reply With Quote #2

Something like this ?
Code:
public forward_kill( id ) {     if( bKill[ id ] >= MAX_KILLS )     {     //  bKill[ id ] = MAX_KILLS;         return FMRES_IGNORED;     }         if( ++bKill[ id ] == MAX_KILLS )     {         get_user_name( id, szName, charsmax( szName ) );                 color_print( 0, "^3%s^1 has reached the number %d!", name, MAX_KILLS );         bKill[ id ] = MAX_KILLS;     }         return FMRES_IGNORED; }
__________________
xPaw 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 04:02.


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