AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Friendly Team can see sprite... (https://forums.alliedmods.net/showthread.php?t=244043)

kketan77 07-13-2014 00:22

Friendly Team can see sprite...
 
Hello, I created sprite on players head which is visible to friendly team but when this sprite created the enemy team also can see this sprite.

How i can make this sprite's visibility limited to friendly team?
(e.g. Just like radio commands which create sprite above player head & visible to friendly team)

PHP Code:

                message_begin(MSG_ALLSVC_TEMPENTITY)
                
write_byte(TE_PLAYERATTACHMENT)
                
write_byte(id)
                
write_coord(60)            
                
write_short(g_Pass_SprId)
                
write_short(20)            
                
message_end() 

I don't want adding and removing method like this plugin Team Icon Spr v1.0.4

Thanks in Advance :3

Backstabnoob 07-13-2014 05:03

Re: Friendly Team can see sprite...
 
Try sending the message only to the people you want rather than everybody.


All times are GMT -4. The time now is 21:17.

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