Gangchat?
#2

pawn Код:
public OnPlayerText(playerid, text[])
{

   if(text[0] == '&')
   {
     new string[128],name[30];
     GetPlayerName(playerid, name, 30);
     format(string, sizeof(string), "CHAT: %s [ID: %d]: %s", name, playerid, text[1]);
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
        if(PlayerInfo[playerid][Team] == PlayerInfo[i][Team])
        {
           SendClientMessage(i,agua,string);
           return 0;
        }
       
     }
     return 0;
   }
   return 0;
}
Make the needed changes
Reply


Messages In This Thread
Gangchat? - by Face9000 - 17.12.2010, 21:57
Re: Gangchat? - by blackwave - 17.12.2010, 22:35
Re: Gangchat? - by Benjo - 17.12.2010, 23:02
Re: Gangchat? - by Face9000 - 18.12.2010, 07:48
Re: Gangchat? - by Face9000 - 18.12.2010, 19:07
Re: Gangchat? - by blackwave - 18.12.2010, 19:12
Re: Gangchat? - by Darklom - 18.12.2010, 19:12
Re: Gangchat? - by Face9000 - 18.12.2010, 19:19
Re: Gangchat? - by blackwave - 18.12.2010, 19:36
Re: Gangchat? - by Benjo - 19.12.2010, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)