YCMD Question
#9

I never used YCMD but let's be logic.

PHP код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playeridcmdtext[], e_COMMAND_ERRORS:success)
{
    if(
lastcommand[playerid] != && gettime()-lastcommand[playerid] < 2)
    {
        
SCM(playerid0xFF0000FF"Don't spam commands.");
        return 
COMMAND_OK;
    }
    
    switch(
success)
    {
        case 
COMMAND_UNDEFINEDSCM(playeridCOLOR_WHITE"ERROR: That command doesn't exists. Type /help!");
    }
    
lastcommand[playerid] = gettime();
    return 
COMMAND_OK;

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: 1 Guest(s)