[Pedido] [AFK] Motivo .
#11

Criei o sisteminha bбsico(sem precisar de nenhum processador de comandos ou 'sscanf').

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){

    if(!strcmp(cmdtext, "/afk", true, 4)){

        if(strlen(cmdtext) == 4)
            return SendClientMessage(playerid, -1, "/Afk <Motivo>");

        strdel(cmdtext, 0, 5);

        static
            String[128],
            Nome[24]
        ;
       
        String[0] = '\0';

        format(String, 128, "Player %s ficou ausente, motivo: %s", (GetPlayerName(playerid, Nome, 24), Nome), cmdtext);
        SendClientMessageToAll(-1, String);
        return true;
    }
    return false;
}



Ai vocк pega como base.
Reply


Messages In This Thread
[AFK] Motivo . - by Zona_Sky - 09.11.2012, 20:17
Re: [AFK] Motivo . - by Joao Pedro - 09.11.2012, 20:18
Re: [AFK] Motivo . - by Zona_Sky - 09.11.2012, 20:27
Re: [AFK] Motivo . - by Q.I - 09.11.2012, 20:28
Re: [AFK] Motivo . - by Joao Pedro - 09.11.2012, 20:29
Re: [AFK] Motivo . - by Sky™ - 09.11.2012, 20:30
Re: [AFK] Motivo . - by Zona_Sky - 09.11.2012, 20:38
Re: [AFK] Motivo . - by Sky™ - 09.11.2012, 20:47
Re: [AFK] Motivo . - by Zona_Sky - 09.11.2012, 21:03
Re: [AFK] Motivo . - by Zona_Sky - 09.11.2012, 21:16
Re: [AFK] Motivo . - by zSuYaNw - 10.11.2012, 02:45
Re: [AFK] Motivo . - by Zona_Sky - 10.11.2012, 13:02
Re: [AFK] Motivo . - by xioriscripter - 13.08.2013, 13:56
Re: [AFK] Motivo . - by PT - 13.08.2013, 13:59
Re: [AFK] Motivo . - by xioriscripter - 13.08.2013, 14:14
Re: [AFK] Motivo . - by PT - 13.08.2013, 15:32

Forum Jump:


Users browsing this thread: 3 Guest(s)