01.03.2018, 17:35
How can i make to don't let the player to spam an command in this:
like to spam only 2 times in a second like that:

i can't spam more than 2 times in a second
Код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
switch(success)
{
case COMMAND_UNDEFINED: SCM(playerid, COLOR_WHITE, "ERROR: That command doesn't exists. Type /help!");
}
return COMMAND_OK;
}

i can't spam more than 2 times in a second


?? i want to return the command, to don't work if was spammed like in the photo, on my server i can spam the command like 6-7 times on a second

that's what i said, it's sending the message to don't spam but the command is still running