[Ajuda] Comandos
#2

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;
}
Reply


Messages In This Thread
Comandos - by Ts3 - 09.08.2014, 22:48
Re: Comandos - by zSuYaNw - 09.08.2014, 22:54
Re: Comandos - by Ts3 - 09.08.2014, 23:49
Re: Comandos - by zSuYaNw - 10.08.2014, 03:13
Re: Comandos - by Ts3 - 10.08.2014, 03:56
Re: Comandos - by zSuYaNw - 10.08.2014, 03:59
Re: Comandos - by Ts3 - 11.08.2014, 01:19
Re: Comandos - by ViniBorn - 11.08.2014, 01:29
Re: Comandos - by Ts3 - 11.08.2014, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)