16.03.2018, 12:24
i have that code:
and every time i spam a command, it's not cancelling the command, it's sending me "Unknown Command".
Код:
if(GetPVarInt(playerid, "LastCMDTime") != 0 && gettime()-GetPVarInt(playerid, "LastCMDTime") < 2)
{
return COMMAND_ZERO_RET;
}
else
{
SetPVarInt(playerid, "LastCMDTime", gettime());
switch(success)
{
case COMMAND_UNDEFINED: SCM(playerid, COLOR_WHITE, "ERROR: That command doesn't exists. Type /help!");
}
if(svRestarting <= 60 && IsSvRestarting)
{
SS(playerid, COLOR_GREY, RestartingMSG, RestartingMSGEN);
return COMMAND_ZERO_RET;
}
else
{
return COMMAND_OK;
}
}


