[Ajuda] Como colocar "Motivo" nos comandos?
#5

tens ae um exemplo feito em zcmd juntamente com sscanf

pawn Код:
CMD:lindo(playerid, params[])
{
    new string[256], id, motivo[64], pname[MAX_PLAYER_NAME];
    GetPlayerName(id, pname, sizeof(pname));

    if(sscanf(params, "us[64]", id, motivo))
    {
        SendClientMessage(playerid, Vermelho, "Digite: /lindo [id] [motivo]");
        return 1;
    }
    format(string, sizeof(string), "%s e lindo. Motivo: %s ( /afk )", pname, AFKMotivo);
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply


Messages In This Thread
Como colocar "Motivo" nos comandos? - by Jonathan4i20 - 12.08.2013, 23:14
Re : Como colocar "Motivo" nos comandos? - by ThiagoMK - 12.08.2013, 23:42
Re: Como colocar "Motivo" nos comandos? - by StreetGT - 12.08.2013, 23:50
Re: Como colocar "Motivo" nos comandos? - by Juniiro3 - 12.08.2013, 23:56
Re: Como colocar "Motivo" nos comandos? - by PT - 13.08.2013, 00:43
Re: Como colocar "Motivo" nos comandos? - by Jonathan4i20 - 13.08.2013, 02:31

Forum Jump:


Users browsing this thread: 2 Guest(s)