22.02.2012, 17:43
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:
Dialog(Menu)
its good to define some colors to use later
put this on top of your script:
Hope i helped
Message:
pawn Код:
if(strcmp("/commands", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "-----Server Commands-----");
SendClientMessage(playerid, COLOR_BLUE, "/heal , /help, /kill");
return 1;
}
pawn Код:
if(strcmp("/commands", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Commands:", "/heal, /kill, /heal", "Ok", "");
return 1;
}
put this on top of your script:
pawn Код:
#define COLOR_BLUE 0x0000FFFF