command help[+Rep]
#1

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!
Reply
#2

i didn't understand plz explain more
Reply
#3

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 .
Reply
#4

You mean replace it instead "Server: Unknown command" ?

EDIT: use that https://sampforum.blast.hk/showthread.php?tid=274661
Reply
#5

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
Reply
#6

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
Reply
#7

Just replace mine with ur text

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
  if(!
success) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM]: {FFFFFF}The command you have entered does not exist. Use {ffff33}(/help, /cmds)");
  return 
0;

Reply
#8

Yeah.. Stunn23's Code Can also be used.. It similar to that you want...
Reply
#9

Well, both of us same just not same code. but it does the same thing.
Reply
#10

Ty guys rep added guys anyone of u want to work me in my freeroam gm?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)