[help]sendmassage
#1

hello guys i need help with:
to send a clinet massage[exmple] if(maxplayers)= team=1
maxplayers = all players
so if all players on team 1
then will wroten to all "team 1 won"
please help
thanx a lot to helper
Reply
#2

help please
Reply
#3

Please explain more, with proper use of English.

Use translate.******.com and translate it from your own language. Or even type it here in your own language and maybe one of us can help you. I will certainly try, thanks.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)