29.12.2012, 14:48
When I type an incorrect command my server says this: Server: Unknown Command
How do I change that?
How do I change that?
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "bla bla use /cmds");
return 1;
}
A lot of ways to do it, here's an easy one
pawn Код:
|
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! |
return 0;
return SendClientMessage(playerid, YourDefinedColor, "blah,blah,blah,");