Problema
#5

pawn Код:
if(!strcmp(cmdtext, #/g, true))
{
  if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, #USAGE: /g [text]);
  if(gTeam[playerid]!=TEAM_GROVE) return 0;
  new playername[20], string[128];
  GetPlayerName(playerid, playername, sizeof(playername));
  format(string, sizeof(string), # *TeamChat [%s]: %s, playername, cmdtext[2]);
  for(new i; i<GetMaxPlayers(); ++i) if(gTeam[i]==TEAM_GROVE) SendClientMessage(i, 0xAFAFAFAA, string);
  return 1;
}
The most short, the most quick(GetMaxPlayers), the most good.
Sorry, if i have spelling mistakes, I am from Israel.
Reply


Messages In This Thread
Problema - by Hor1z0n - 09.11.2009, 19:04
Re: Problema - by Farsek - 10.11.2009, 03:12
Re: Problema - by xxmitsu - 10.11.2009, 10:58
Problema - by [NoV]LaZ - 10.11.2009, 14:26
Re: Problema - by _V1rTu4L_ - 11.11.2009, 12:29
Re: Problema - by MJ! - 28.11.2009, 21:03
Re: Problema - by [BFN]Stunter - 29.11.2009, 07:19

Forum Jump:


Users browsing this thread: 2 Guest(s)