/n help (+REP)
#1

Can someone tell me how to make a /n command with zcmd
Reply
#2

/n for ? give us more information
Reply
#3

/newbie
Reply
#4

Although there are many changes that need to be done. (colors, format, restriction timers, etc.)

This is the basic idea of a /n command.

EDIT: I forgot that 'params' is indeterminate at compile time.

pawn Код:
CMD:n(playerid, params[])
{
    if(isnull(params)) {
        return SendClientMessage(playerid, -1, "USAGE: /n(ewbie) [question]");
    }
   
    new name[MAX_PLAYER_NAME], msg[128];
    GetPlayerName(playerid, name, sizeof(name));
   
    format(msg, sizeof(msg), "* Newbie %s: %s", name, params);
    SendClientMessageToAll(-1, params);
    return 1;
}

CMD:newbie(playerid, params[]) return cmd_n(playerid, params); // so the command /newbie is also valid.
Reply
#5

what is your command processor ?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)