Posts: 91
Threads: 29
Joined: Aug 2013
Reputation:
0
Hello friends i need a help when any player type any unknown cmd then it shows like this
Unknown command
But i want to make it more attractive like this when player will type an unknown cmd then it will show a msg to us like this.
Error(red colour) you(white colour) enter(white) a(white) wrong(white) command(white) try(white) /'help(green) or /cmds(green)
Anyone
Srry for bad english!
Posts: 678
Threads: 16
Joined: Apr 2014
Reputation:
0
i didn't understand plz explain more
Posts: 91
Threads: 29
Joined: Aug 2013
Reputation:
0
Bro i want a msg to be shown
Error:-you entered a wrong cmd use /help
In this error must be show in red colour /help must be shown in green colour .
Posts: 91
Threads: 29
Joined: Aug 2013
Reputation:
0
Bro i want to replace but i want to change in look like this
Error must be in red color /help in green and rest of in white
Posts: 314
Threads: 103
Joined: Jun 2014
You Can do it Like This:-
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success)
{
SendClientMessage(playerid,COLOR_RED,"Error: you entered a wrong command use /help");
}
return 1;
}
Here Return 1 will Hide your "Server: Unkown Command" Text
Posts: 314
Threads: 103
Joined: Jun 2014
Yeah.. Stunn23's Code Can also be used.. It similar to that you want...
Posts: 1,733
Threads: 187
Joined: Oct 2014
Reputation:
0
Well, both of us same just not same code. but it does the same thing.
Posts: 91
Threads: 29
Joined: Aug 2013
Reputation:
0
Ty guys rep added guys anyone of u want to work me in my freeroam gm?