Raised This Month: $ Target: $400
 0% 

how to make the TE_PLAYERATTACHMENT...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-07-2009 , 13:36   Re: how to make the TE_PLAYERATTACHMENT...
Reply With Quote #4

In this example, we want to show a sprite on 'id'. It should send the message only to all its teammates.

Code:
MyFunction ( id ) {     for ( new i = 1; i <= MaxClients; i++ )     {         if ( i != id && get_user_team( id ) == get_user_team( i ) )         {             message_begin( MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, i );             write_byte( TE_PLAYERATTACHMENT );             write_byte( id );             write_coord( 45 );             write_short( ModelIndex );             write_short( 100 );         }     } }
Arkshine 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 17:06.


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