Just tell what is wrong here'
#1

It's a command, which detects player team and send the message for all players which are of his team

pawn Код:
dcmd_x(playerid,params[])
{
   new text[64];
   new name[30];
   new string[128];
   GetPlayerName(playerid, name, 30);
   if(sscanf(params,"s[64]",text)) SendClientMessage(playerid, cinza, "/x <texto>");
   if(GetPlayerTeam(playerid) == 0) SendClientMessage(playerid, cinza, "Vocк nгo tem grupo ainda");
   format(string,sizeof(string),"CHAT: %s [ID: %d]: %s",name,playerid,params[2]);
   foreach (Player, i)
   {
      if(GetPlayerTeam(playerid) == GetPlayerTeam(i))
      {
         SendClientMessage(i,agua,string);
      }
   }
   return 1;
}

It just returns nothing o.o
Reply


Messages In This Thread
Just tell what is wrong here' - by blackwave - 13.12.2010, 19:52
Re: Just tell what is wrong here' - by Vince - 13.12.2010, 19:59
Re: Just tell what is wrong here' - by blackwave - 13.12.2010, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)