29.08.2015, 12:40
O que ta errado no comando de radio do meu sv?
Fica dando SERVER: Unkown command., ta meio errado, nгo sei o pq
Fica dando SERVER: Unkown command., ta meio errado, nгo sei o pq
Код:
CMD:f(playerid, params[]) {
if(fmembro[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "You do not participate in a faction.");
new texto;
new string[80];
new family;
if(sscanf(params,"s", texto)) {
SendClientMessage(playerid, -1, "Use: /f [text]");
return 1;
}
family = fmembro[playerid];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(fmembro[i] == family)
{
format(string, sizeof(string), "** %i- %s: %s, over. **", fcargo[playerid], PlayerName(playerid), texto);
SendClientMessage(i, COLOR_RADIO, string);
break;
}
}
}
return 1;
}

