[Consola RCON]Comandos.
#5

pawn Код:
if(strcmp(cmd, "msg", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /msg [texto]");
        format(string, sizeof(string), "* Admin: %s",result);
        SendClientMessageToAll(COLOR_GREEN, string);
        return 1;
    }
}
Reply


Messages In This Thread
[Consola RCON]Comandos. - by BlackFCK - 05.03.2012, 17:39
Respuesta: [Consola RCON]Comandos. - by GaBO! - 05.03.2012, 20:17
Re: [Consola RCON]Comandos. - by BlackFCK - 05.03.2012, 21:37
Respuesta: [Consola RCON]Comandos. - by GaBO! - 05.03.2012, 23:56
Respuesta: [Consola RCON]Comandos. - by MrLevan - 06.03.2012, 00:34
Re: [Consola RCON]Comandos. - by BlackFCK - 06.03.2012, 00:50
Re: [Consola RCON]Comandos. - by GaBO! - 06.03.2012, 11:50
Re: [Consola RCON]Comandos. - by BlackFCK - 06.03.2012, 14:55
Re: [Consola RCON]Comandos. - by GaBO! - 06.03.2012, 19:18
Re: [Consola RCON]Comandos. - by BlackFCK - 06.03.2012, 20:41
Respuesta: [Consola RCON]Comandos. - by GaBO! - 07.03.2012, 00:49
Respuesta: [Consola RCON]Comandos. - by the_chaoz - 07.03.2012, 00:58
Re: [Consola RCON]Comandos. - by BlackFCK - 07.03.2012, 01:56

Forum Jump:


Users browsing this thread: 2 Guest(s)