how to make the TE_PLAYERATTACHMENT...
Hi, i have a question:
Who to make the TE_PLAYERATTACHMENT (sprite up on head) to see only his team? Example: i have a gun up on my head.. and i want to see only my team. :crab: +karma if you can help me :) |
Re: how to make the TE_PLAYERATTACHMENT...
Use MSG_ONE_UNERELIABLE. I mean, just send the message to players you want they can see the sprite on the provided player ( arg2 ; second write_byte )
|
Re: how to make the TE_PLAYERATTACHMENT...
Can you show an example, arkshine?
|
Re: how to make the TE_PLAYERATTACHMENT...
In this example, we want to show a sprite on 'id'. It should send the message only to all its teammates.
Code:
|
Re: how to make the TE_PLAYERATTACHMENT...
Shouldn't you use is_user_alive(i)?
Thanks. Can't give you +Karma yet. |
Re: how to make the TE_PLAYERATTACHMENT...
Well, yeah
PHP Code:
|
Re: how to make the TE_PLAYERATTACHMENT...
thank you all for the suggestions and help ^^
|
Re: how to make the TE_PLAYERATTACHMENT...
sorry to revive thread. But as could do so only the team can see the sprite. Only the team, terrorist can see the Sprite those who are the team terrorist.
Thanks Sorry for my bad english xD |
Re: how to make the TE_PLAYERATTACHMENT...
Use get_players with flags "aeh" + teamname so you will retrieve only alive teamates.
|
| All times are GMT -4. The time now is 17:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.