Raised This Month: $ Target: $400
 0% 

get user old team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-27-2012 , 22:58   Re: get user old team
Reply With Quote #9

If this is not enough, you may try do this:

PHP Code:
#include < amxmodx >
#include < fakemeta >

new g_iTeam33 ], Floatg_fTimeg_iMaxClientsboolg_bConnected33 ];

public 
client_connectiPlayer ) {
  
g_iTeamiPlayer ] = -1;
  
g_bConnectediPlayer ] = false;
}

public 
client_disconnectiPlayer ) {
  
g_iTeamiPlayer ] = -1;
  
g_bConnectediPlayer ] = false;
}

public 
plugin_init( ) {
  
register_forwardFM_StartFrame"OnGameFrame" );
  
g_iMaxClients get_maxplayers( );
}

public 
client_putinserveriPlayer )
  
g_bConnectediPlayer ] = true;

public 
OnGameFrame( ) {
  static 
FloatfGameTimeiiTeam;
  
fGameTime get_gametime( );

  if( 
fGameTime g_fTime >= 0.0666 ) {
    for( 
1<= g_iMaxClientsi++ ) {
      if( 
g_bConnected] ) {
        
iTeam get_pdata_inti114 );

        if( 
g_iTeam] != iTeam ) {
          
// THE TEAM HAS BEEN CHANGED ( OLDTEAM = g_iTeam[ i ], NEWTEAM = iTeam )

          /*

          */

          
g_iTeam] = iTeam;
        }
      }
    }

    
g_fTime fGameTime;
  }

__________________

Last edited by claudiuhks; 08-27-2012 at 23:04.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 05:50.


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