/commands
#1

hey how can i make a /commands command?
for example when you type /commands this shows up:
~yellow~ -------commands------------
~white~ /command1 /command2 /command3
~white~ /command4 /command5 /command6
~yellow~ -------commands------------
Reply
#2

something like this?

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREY, "~~commands~~");
SendClientMessage(playerid,COLOR_GREY, "command");
return 1;
}
return 0;
}
Reply
#3

Try:
pawn Код:
#define COLOR_YELLOW 0xFFD800FF
#define COLOR_WHITE  0xFFFFFFFF

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "-------commands------------");
        SendClientMessage(playerid, COLOR_WHITE, "/command1 /command2 /command3");
        SendClientMessage(playerid, COLOR_WHITE, "/command4 /command5 /command6");
        SendClientMessage(playerid, COLOR_YELLOW, "-------commands------------");
        return 1;
    }
    return 0;
}
Reply
#4

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)