05.08.2012, 03:04
Can someone tell me how to make a /n command with zcmd
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.