Server: Unknown Command
#1

When I type an incorrect command my server says this: Server: Unknown Command

How do I change that?
Reply
#2

A lot of ways to do it, here's an easy one
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, -1, "bla bla use /cmds");
    return 1;
}
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
A lot of ways to do it, here's an easy one
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_RED, "bla bla use /cmds");
    return 1;
}
thanks that helped me too!

If you didn't know how to do it

here is a tutorial:

1.Copy this and paste it under "public OnPlayerCommandText(playerid, cmdtext[])"
2.If you get this error "serverfile\gamemodes\test25.pwn(101) : error 017: undefined symbol "COLOR_RED""
just replace "COLOR_RED" with the colour code you want
3.Compile it with the Blue arrow up
and you are done!
Reply
#4

Quote:
Originally Posted by mariolatif741
Посмотреть сообщение
thanks that helped me too!

If you didn't know how to do it

here is a tutorial:

1.Copy this and paste it under "public OnPlayerCommandText(playerid, cmdtext[])"
2.If you get this error "serverfile\gamemodes\test25.pwn(101) : error 017: undefined symbol "COLOR_RED""
just replace "COLOR_RED" with the colour code you want
3.Compile it with the Blue arrow up
and you are done!
Hell no!

Just replace
pawn Код:
return 0;
with
pawn Код:
return SendClientMessage(playerid, YourDefinedColor, "blah,blah,blah,");
Reply
#5

The best one is the one which DaRk_RaiN suggested.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)