09.10.2018, 21:17
I don't know how ocmd works but in my gamemode, in OnPlayerCommandRecieved, i have this:
To prevent non logged players the usage of commands.
You can easily replace it with your anti cmd spam code.
pawn Код:
if(Player[playerid][IsLoggedIn] == false) return ShowPlayerFooter(playerid, "You need to be ~r~logged ~w~to use commands.", 5000);
You can easily replace it with your anti cmd spam code.