13.12.2010, 19:52
It's a command, which detects player team and send the message for all players which are of his team
It just returns nothing o.o
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