/n help (+REP)
#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


Messages In This Thread
/n help (+REP) - by Michael_Cuellar - 05.08.2012, 03:04
Re: /n help (+REP) - by Devilxz97 - 05.08.2012, 03:18
Re: /n help (+REP) - by Michael_Cuellar - 05.08.2012, 03:19
Re: /n help (+REP) - by ReneG - 05.08.2012, 03:20
Re: /n help (+REP) - by Devilxz97 - 05.08.2012, 03:23

Forum Jump:


Users browsing this thread: 4 Guest(s)