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?