[ajuda] Galera й um comando simples mesmo porem eu n sei fazer xD
#2

BRASIL PLAY FOREVER DETECTED ! =P


Isto deve resolver o seu problema :

pawn Код:
if(strcmp(cmd, "/mostrarrg", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD1, "USE: /mostrarg (id)");
            return 1;
        }
        if(gPlayerLogged[playerid] != 0)
        {
            ShowStats(playerid,strval(tmp));
            SendClientMessage(playerid, 0xFFFFFFAA, "Vocк mostrou seu RG б um jogador :D !");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta logado !");
        }
        return 1;
    }

Hб vбrios tutoriais sobre como fazer comandos, recomendo este: https://sampforum.blast.hk/showthread.php?tid=195380


Espero ter ajudado .
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)