Making a command to display command.
#2

Its good for you to use sscanf and zcmd, they will organize better your command, you just gotta search for some tutorials, now about the /commands you can either show a menu or a message:

Message:

pawn Код:
if(strcmp("/commands", cmdtext, true, 10) == 0)
   {
      SendClientMessage(playerid, COLOR_BLUE, "-----Server Commands-----");
      SendClientMessage(playerid, COLOR_BLUE, "/heal , /help, /kill");
      return 1;
   }
Dialog(Menu)

pawn Код:
if(strcmp("/commands", cmdtext, true, 10) == 0)
    {
      ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Commands:", "/heal, /kill, /heal", "Ok", "");
      return 1;
    }
its good to define some colors to use later
put this on top of your script:

pawn Код:
#define COLOR_BLUE 0x0000FFFF
Hope i helped
Reply


Messages In This Thread
Making a command to display command. - by TheDominator - 22.02.2012, 17:02
Re: Making a command to display command. - by ttloko2 - 22.02.2012, 17:43
Re: Making a command to display command. - by TheDominator - 22.02.2012, 17:47
Re: Making a command to display command. - by sniperwars - 09.03.2012, 22:06
Re: Making a command to display command. - by rangerxxll - 10.03.2012, 00:25

Forum Jump:


Users browsing this thread: 2 Guest(s)