Well, yeah
PHP Code:
MyFunction ( id )
{
for ( new i = 1; i <= MaxClients; i++ )
{
if ( i != id && get_user_team( id ) == get_user_team( i ) )
{
if( !is_user_alive( i ) )
continue;
message_begin( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, i );
write_byte( TE_PLAYERATTACHMENT );
write_byte( id );
write_coord( 45 );
write_short( ModelIndex );
write_short( 100 );
}
}
}
But i think it won't attach anything if the player's not alive, and no errors will show up.
__________________