SA-MP Forums Archive
/n help (+REP) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /n help (+REP) (/showthread.php?tid=366065)



/n help (+REP) - Michael_Cuellar - 05.08.2012

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


Re: /n help (+REP) - Devilxz97 - 05.08.2012

/n for ? give us more information


Re: /n help (+REP) - Michael_Cuellar - 05.08.2012

/newbie


Re: /n help (+REP) - ReneG - 05.08.2012

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.



Re: /n help (+REP) - Devilxz97 - 05.08.2012

what is your command processor ?