[Cs:s] How to block kill command in console
Posted: Sat Oct 15, 2022 11:04 am
Hi, i have issues to block kill command, whem you type it in console, it suppose to block, but it allows still kill yourself in console, it doesn't send the message in chat.
Here is the code i tried:
Here is the code i tried:
Syntax: Select all
from commands.client import ClientCommand
from commands import CommandReturn
from colors import GREEN, LIGHT_GREEN
from messages import SayText2
@ClientCommand('kill')
def kill_command(command, index):
SayText2(f"{GREEN}[ZR] » {LIGHT_GREEN}You can't {GREEN}suicide!").send(index)
return CommandReturn.BLOCK