SA-MP Forums Archive
Avoid /q if Admin-Duty? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Avoid /q if Admin-Duty? (/showthread.php?tid=567930)



Avoid /q if Admin-Duty? - kevannkw - 17.03.2015

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"?


Re: Avoid /q if Admin-Duty? - CalvinC - 17.03.2015

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.


Re: Avoid /q if Admin-Duty? - rymax99 - 17.03.2015

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


Re: Avoid /q if Admin-Duty? - kevannkw - 17.03.2015

Alright, Thanks for the quick response

Close this