[help]sendmassage
#4

If you set your teams like that (https://sampwiki.blast.hk/wiki/SetPlayerTeam) it could be solved like that:

pawn Код:
new team = GetPlayerTeam(playerid); // Checking in which team the player executing the command is.
for(new i; i < MAX_PLAYERS; i++) // Looping through all players.
{
   if(GetPlayerTeam(i) == team) // Checking if player i is apart of the same team.
   {
      SendClientMessage(i, YOUR_COLOR, "This is a message to my team."); // If true, send the message.
   }
}
Reply


Messages In This Thread
[help]sendmassage - by bboytimix - 25.03.2012, 11:07
Re: [help]sendmassage - by bboytimix - 25.03.2012, 11:54
Re: [help]sendmassage - by iGetty - 25.03.2012, 13:17
AW: [help]sendmassage - by Campbell- - 25.03.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)