29.12.2009, 19:46
Hi! i got littler problem with my team chat command
The problem is that this just dont work and i dont know what can be wrong.
Код:
dcmd_t(playerid, cmdtext[])
{
new idx;
while(cmdtext[idx] == 32) idx++;
if(cmdtext[idx] == EOS)
return SendClientMessage(playerid,COLOR_GOLD,"USAGE: /t [text]");
new string[128];
new team = GetPlayerTeam(playerid);
new color = GetPlayerColor(playerid);
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
format(string,128,"[Team]%s: %s",string,cmdtext[idx]);
SendClientMessage(team,color,string);
return 1;
}

