Raised This Month: $ Target: $400
 0% 

How to change player's team ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-21-2012 , 21:52   Re: How to change player's team ?
Reply With Quote #1

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

ChangeTeamiPlayeriTeamboolbKillboolbUpdateModel )
{
  if( 
pev_validiPlayer ) == // IsNullEnt( Player ) == false && Player -> PrivateData != NULL
  
{
    if( 
iTeam && iTeam )
    {
      !
bUpdateModel set_pdata_intiPlayer114iTeam ) : cs_set_user_teamiPlayeriTeam );

      if( 
bKill )
        
dllfuncDLLFunc_ClientKilliPlayer );
    }

    else if( 
iTeam == && is_user_aliveiPlayer ) && ( get_pdata_intiPlayer114 ) != && get_pdata_intiPlayer114 ) != ) ) // Transfer to spectator only if player is alive -- is more reliable.
    
{
      
set_pdata_intiPlayer114);

      
dllfuncDLLFunc_ClientKilliPlayer );
    }
  }


Last edited by claudiuhks; 08-22-2012 at 04:39.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 00:20.


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