"The command /free does not exist!"?
#1

Hello,
As use can see, How can i make this? I want it to have the command that the player types into the error message.
Another Example: The command /help does not exist!

Thanks
Reply
#2

Using zcmd?
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=283306
What command processor are you using?
Reply
#4

Oh yeah, sorry i forgot to mention that.
Im using zcmd.
Reply
#5

pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new string[70];
        format(string, sizeof(string), "* Command %s dont exits, Type /help for all your commands.", cmdtext);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}
Reply
#6

pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        format(cmdtext,128,"* Command %s dont exits, Type /help for all your commands.",cmdtext);
        SendClientMessage(playerid,-1,cmdtext);
    }
    return 1;
}
Reply
#7

Thanx Resolved
Reply
#8

Thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)