success == 0
#1

Heyy everyone! My server use only ZCMD, no any strcmp and i wanna if a player use a non existent command to say:
Код:
{00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}.
but at my server say:
Код:
SERVER:Unknow Command.
So, how can i change unknow command to " {00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}. " ?
Reply
#2

Send use the source code
Reply
#3

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(success == 0)
	{
		SendClientmessage(playerid,-1, " {00C0FF}This Command Don't {FFFFFF}Exist{00C0FF}. ");
	    return 1;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)