Raised This Month: $ Target: $400
 0% 

How to detect player changeteam or model?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-04-2009 , 08:58   Re: How to detect player changeteam or model?
Reply With Quote #3

PHP Code:
#include <amxmodx>

public plugin_init() 
    
register_event("TeamInfo""join_team","a");
    
public 
join_team()
{
    new 
index read_data);
    new 
team], name32 ], msg64 ];
    
get_user_nameindexname31 );
    
    
read_data2team);
    
    switch( 
team] )
    {
        case 
'C'formatex(msgcharsmax(msg), "%s joined CTs"name );
        case 
'T'formatex(msgcharsmax(msg), "%s joined Ts"name );
        case 
'S'formatex(msgcharsmax(msg), "%s joined Spects"name );
    }
    
    
client_print0print_chatmsg );
    return 
0;

EDIT: At change model, cache the model at reset hud and check it in prethink, i think...
__________________


Last edited by anakin_cstrike; 01-04-2009 at 09:12.
anakin_cstrike 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 23:51.


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