Quote:
Originally Posted by Marttt
Added a check on the "OnPressed" event, try it now.
PHP Code:
public void OnPressed(const char[] output, int caller, int activator, float delay)
{
if (!CheckCommandAccess(activator, "sm_h", ADMFLAG_KICK))
PrintToChat(activator, "Only admins can use helicopters");
...
Note:
This is not the best way to do it, but may work, players will still take "5" seconds for the chat message (since "type" var is always false).
And if you use a "admin_override.cfg" to change the command flag, it may not work properly.
Thank you Silvers, I was about to post the wrong sp plugin file.
|
If a helicopter is not used for many seconds, it will disappear.
Is this going to be simpler?
__________________