admin chat
#8

pawn Код:
if(text[0] == '!')
{
   new string[128+MAX_PLAYER_NAME+5];
   new name[24]; GetPlayerName(playerid,name,sizeof(name));
   format(string,sizeof(string),"*%s* : %s",name,text[1]);
   PlayerLoop(i)
   {
       if(IsPlayerConnected(i) &&(gTeam[i] == gTeam[playerid]))
       {
           SendClientMessage(i,GetPlayerColor(playerid),string);
           return 0;
       }
   }
   return 0;
}
Reply


Messages In This Thread
admin chat - by Gh0sT_ - 26.09.2010, 11:02
Re: admin chat - by [XST]O_x - 26.09.2010, 11:05
Re: admin chat - by Gh0sT_ - 26.09.2010, 11:09
Re: admin chat - by [XST]O_x - 26.09.2010, 11:10
Re: admin chat - by Gh0sT_ - 26.09.2010, 11:21
Re: admin chat - by [XST]O_x - 26.09.2010, 11:25
Re: admin chat - by Gh0sT_ - 26.09.2010, 11:27
Re: admin chat - by [XST]O_x - 26.09.2010, 11:31
Re: admin chat - by Gh0sT_ - 26.09.2010, 11:34
Re: admin chat - by Gh0sT_ - 26.09.2010, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)