Avoid /q if Admin-Duty?
#1

So i wonder if there is a way to do so if an admin is on-duty and tries to /q, it will not allowe the person and it will send a message like "You need to go off-duty before quitting"?
Reply
#2

It's built in SAMP, you cannot stop it in your script, and they could just use the ESC menu or crash to leave anyways.
You'll have to disable their admin duty in OnPlayerDisconnect.
Reply
#3

No, /q is a client command. Just do what you need in the OnPlayerDisconnect callback.
Reply
#4

Alright, Thanks for the quick response

Close this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)