27.12.2011, 22:10
Hello, I'm using this code, but don't work correctly:
When the flood happens, the message is displayed but the command is executed along
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(pLs[playerid][pBlock] > GetTickCount())
return SendClientMessage(playerid, 0xFF0000FF, "Forbidden commands flood.");
pLs[playerid][pBlock] = GetTickCount() + 3000;
if(!success)
return SendClientMessage(playerid, 0xFF0000FF, "Ops! Unknown Command!");
return 1;
}