YCMD Question
#8

because ycmd is faster and it's good if i have much commands.

And with COMMAND_OK it's not working because it's still running the command and send the messages.

Код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
	if(lastcommand[playerid] != 0 && gettime()-lastcommand[playerid] < 1)
	{
		return COMMAND_OK;
	}
	switch(success)
	{
		case COMMAND_UNDEFINED: SCM(playerid, COLOR_WHITE, "ERROR: That command doesn't exists. Type /help!");
		case COMMAND_OK: lastcommand[playerid] = gettime();
	}
	return COMMAND_OK;
}
i did something wrong?
Reply


Messages In This Thread
YCMD Question - by C0oL3r - 01.03.2018, 17:35
Re: YCMD Question - by RxErT - 01.03.2018, 17:37
Re: YCMD Question - by C0oL3r - 01.03.2018, 17:42
Re: YCMD Question - by RxErT - 01.03.2018, 17:45
Re: YCMD Question - by C0oL3r - 01.03.2018, 17:57
Re: YCMD Question - by C0oL3r - 01.03.2018, 18:21
Re: YCMD Question - by RxErT - 01.03.2018, 18:56
Re: YCMD Question - by C0oL3r - 01.03.2018, 19:03
Re: YCMD Question - by Dayrion - 01.03.2018, 19:10
Re: YCMD Question - by C0oL3r - 01.03.2018, 19:17

Forum Jump:


Users browsing this thread: 2 Guest(s)