Raised This Month: $ Target: $400
 0% 

Isn't the killer/victim same


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-23-2011 , 18:33   Re: Isn't the killer/victim same
Reply With Quote #9

Edit: Eliminated g_iLastKilled[ 33 ] array, now using first cell of g_iKills[ iKiller ][] (since it does not get used anyway) to store the last person iKiller killed.

PHP Code:
#define LastKilled 0
new g_iKills33 ][ 33 ];

public 
KilliVictim iKiller )
{
    if ( 
g_iKillsiKiller ][ LastKilled ] == iVictim )
    {
        if ( ++
g_iKillsiKiller ][ iVictim ] == )
        {
            
//third time killing this person, no kills inbetween
        
}
    }
    else
    {
        
g_iKillsiKiller ][ g_iKillsiKiller ][ LastKilled ] ] = 0;

        
g_iKillsiKiller ][ iVictim ] = 1;
        
g_iKillsiKiller ][ LastKilled ] = iVictim;
    }

__________________

Last edited by Bugsy; 09-23-2011 at 21:16.
Bugsy 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:32.


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