2 things.. Send a sprite message only to a team. and another thing!
1 Attachment(s)
Title! ...
this is my code for the sprite... Code:
message_begin(MSG_ALL,SVC_TEMPENTITY)i had some ideas like: Code:
for(id=1 ; id<=maxplayers ; id++)i don't know if that is possible at all! also... how i increase/decrease the duration of the sprite?! and the other part is in the attached image, that snapshot it's from a mod called "Trouble in terrorist town"... i check the mod but it has aprox.. 20 plugins to work and i wasn't able to find where is that part of code... ty! PS: in ttt uses the sprite thing that i need, i mean.. they put a sprite above te players that are traitors, and only traitors are able to see it! so... probably the answer of my post is in the sma's of ttt.. sadly i can't find it!.. ty for reading and sorry 4 the english mistakes! i didn't realize that is more easy to talk english that write english! :stupid: |
Re: 2 things.. Send a sprite message only to a team. and another thing!
UPDATE!
It's okay if i do this? Code:
public Code_Pase(id)the idea is to show the sprite only to "ID" team... |
Re: 2 things.. Send a sprite message only to a team. and another thing!
That code wont work as is. Use get_players() then you wouldn't need a loop.
PHP Code:
|
Re: 2 things.. Send a sprite message only to a team. and another thing!
In plugin-init i do
maxplayers = get_maxplayers() i don't understand what are you trying to say.. without looping? how is that? |
Re: 2 things.. Send a sprite message only to a team. and another thing!
Update 2 folks!
new code for sprite.. Code:
public Code_Pase(id)the idea is that the sprite "pasespr" appears at one player (in this case is *id*) and only his team can see it! and another question wich part of write_ sends the duration of the sprite? |
Re: 2 things.. Send a sprite message only to a team. and another thing!
PHP Code:
|
Re: 2 things.. Send a sprite message only to a team. and another thing!
Look in messages_const, you have there the message structure.
Quote:
|
Re: 2 things.. Send a sprite message only to a team. and another thing!
1 Attachment(s)
Perfect guys... now i'm having one problem.. why the sprite looks like this?
See Attached Image! :) with some other sprites works fine, without that black background, somehow with another looks like the image. That depends on what?.. the code or the sprite file? PD: the second question that no one answer me! https://forums.alliedmods.net/attach...0&d=1442263849 |
Re: 2 things.. Send a sprite message only to a team. and another thing!
and the other part is in the attached image, that snapshot it's from a mod called "Trouble in terrorist town"... i check the mod but it has aprox.. 20 plugins to work and i wasn't able to find where is that part of code... ty!
PS: in ttt uses the sprite thing that i need, i mean.. they put a sprite above te players that are traitors, and only traitors are able to see it! so... probably the answer of my post is in the sma's of ttt.. sadly i can't find it!.. |
| All times are GMT -4. The time now is 22:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.