[Ajuda] Comando aqui Por Favor!
#2

pawn Код:
// topo da GM
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif

// comando
if(strcmp(cmd, "/cnn", true) == 0)
{
    if(PlayerInfo[playerid][LoggedIn] != 1)
        return SendClientMessage(playerid, red, "Vocк nгo pode usar este comando!");
    if(PlayerInfo[playerid][Level] < 2)
        return SendClientMessage(playerid, red, "Vocк tem que ter nivel 2 para usar este comando!");
    new zte[128];
    if(isnull(zte))
        return SendClientMessage(playerid, red, "Uso correto: /cnn [menssagem]");
    CMDMessageToAdmins(playerid,"CNN");
   
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "~g~%s~p~:~y~%s", sendername, zte);
    GameTextForAll(string, 5000, 3);
    return 1;
}
creio que va funcionar, nao estou muito habituado a usar esse metodo para fazer comandos.
Reply


Messages In This Thread
Comando aqui Por Favor! - by MTCpyedroDN - 10.06.2014, 20:56
Re: Comando aqui Por Favor! - by PT - 10.06.2014, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)