Urgent question regarding commands
#1

Does anyone know how to script commands which can be toggled by admins? I currently use an admin filterscript, which only works if you login to Rcon ingame. Very useful program though. If any could type me an example, that'll probably do it. Also tell me under what callbacks I have to place it. I'm still a beginner, you know.


Any suggestions/ideas are welcome. I just need this to toggle certain TP commands to certain locations, which shouldn't be available for players at all times.
Reply
#2

You should use a bool variable that says if you can use the command or not. When the administrator allows to use the command , variable would be var = true, otherwise var = false. The command would be: if (var) {[command ...]} else {[SendClientMessage ("Command not allowed")]}

Something like that. (Bad translate, I am Spanish )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)