AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   show sprite to all (https://forums.alliedmods.net/showthread.php?t=120973)

One 03-10-2010 06:19

show sprite to all
 
hi,

i tried to make a sprite but only team mates can see the sprite.
idk what i do wrong that other teams cant see the sprite.

Code:

//...ham Player  Spawn

CreateSprite(id)

//.....
public CreateSprite( id )
{   
    message_begin( MSG_ONE, SVC_TEMPENTITY );
    write_byte( TE_PLAYERATTACHMENT );
    write_byte( id );
    write_coord( 45 );
    write_short( g_ct_blue_spr );
    write_short( 32767 );
    message_end();
}


Arkshine 03-10-2010 06:35

Re: show sprite to all
 
MSG_ONE -> MSG_BROADCAST

One 03-10-2010 06:36

Re: show sprite to all
 
:P damn

i wanted to edit my post but you was faster :P

ty.


All times are GMT -4. The time now is 08:38.

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