15.12.2011, 05:56
When I Use This CODE in My GM.
I can't chat.
I can't chat.
PHP код:
if(text[0] == '!')
{
new name[24], string[256];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "{AD855C}[Team Chat]%s: %s", name, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerTeam(playerid) == GetPlayerTeam(i))
SendClientMessage(i,yellow, string);
}
}
}
return 0;