09.08.2014, 22:54
Tens que fazer um loop!!!
pawn Код:
command(cp, playerid, params [])
{
/*/ new string[200];
if(isnull(params)) return SendClientMessage(playerid, Vermelho, "[ x ] Uso correto: /cp [Texto]");
if(Profissao[playerid] != Profissao[playerid])
format(string, sizeof(string), "( CP ) '%s' diz: %s", Nome(playerid), params);
SendClientMessage(playerid, Chat, string); */
if(isnull(params))
return SendClientMessage(playerid, Vermelho, "[ x ] Uso correto: /cp [Texto]");
static
i, x
;
for(i = 0, x = GetMaxPlayers(); i ^ x; ++i){
if(Profissao[i] == Profissao[playerid]){
format(string, sizeof(string), "( CP ) '%s' diz: %s", Nome(playerid), params);
SendClientMessage(i, Chat, string); */
}
}
return 1;
}