Raised This Month: $ Target: $400
 0% 

2 things.. Send a sprite message only to a team. and another thing!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nico_barrera
Junior Member
Join Date: Nov 2009
Location: PC
Old 09-25-2015 , 02:05   Re: 2 things.. Send a sprite message only to a team. and another thing!
Reply With Quote #5

Update 2 folks!

new code for sprite..

Code:
public Code_Pase(id)
{
	new team = get_user_team(id)
	for( new i = 1; i <= MAX_PLAYER; i++ )
	{
		if (get_user_team(i) == team  && is_user_connected(i))
		{
			message_begin(MSG_ONE, SVC_TEMPENTITY, _, i);
			write_byte(TE_PLAYERATTACHMENT);
			write_byte(id);
			write_coord(45);
			write_short(pasespr)
			write_short(30);
			message_end();
		}
	}
}

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?
nico_barrera is offline
Send a message via MSN to nico_barrera
 



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 22:14.


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