Hey there,
is there anyone out there who has a code which blocks a player who used a command. For example: xy use !test and cannot pick up any weapon for 30 seconds.
Honestly, I have no clue how I could do this. I thought about SDKHooks, but I have no idea how I should write this code.
You are creating the timer incorrectly... the any:data goes in the third argument (native Handle:CreateTimer(Float:interval, Timer:func, any:data=INVALID_HANDLE, flags=0);), not the fourth... And, when passing client data in timers, use userId or serial... Also, return plugin_handled in command callback, otherwise you get unknown command in player's console