how to unkown command, read the topic to understand +rep
#1

hey guys....

how to make when player make a wrong command it tells him

Command Not Found Use /cmds or /commands.!

im using Zcmd

when player write an unkown command it says

unkown command

i want it to be

Command Not Found Use /cmds or /commands.!
Reply
#2

Example:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        return SendClientMessage(playerid, red, "ERROR: {FFFFFF}You Have Entered An Invalid Command. Please Read {00FF00}/CMDS{FFFFFF}.");
    }
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
    if(!success) return SendClientMessage(playerid,-1,"Command Not Found. Use /cmds or /commands!");
    return 1;
}
EDIT: too late D:
Reply
#4

thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)