PHP Code:
#include <amxmodx>
public plugin_init()
register_event("TeamInfo", "join_team","a");
public join_team()
{
new index = read_data( 1 );
new team[ 2 ], name[ 32 ], msg[ 64 ];
get_user_name( index, name, 31 );
read_data( 2, team, 1 );
switch( team[ 0 ] )
{
case 'C': formatex(msg, charsmax(msg), "%s joined CTs", name );
case 'T': formatex(msg, charsmax(msg), "%s joined Ts", name );
case 'S': formatex(msg, charsmax(msg), "%s joined Spects", name );
}
client_print( 0, print_chat, msg );
return 0;
}
EDIT: At change model, cache the model at reset hud and check it in prethink, i think...
__________________