AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Block gl_fog command? (https://forums.alliedmods.net/showthread.php?t=278660)

Depresie 02-05-2016 14:20

[HELP] Block gl_fog command?
 
How do i block this command?
Code:

gl_fog 0
I've tried, but doesn't work, it seems like it doesn't get hooked.. the print message isn't displaying aswell =\
Code:

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_concmd("gl_fog", "block")
    register_clcmd("gl_fog", "block")
   
    // Add your code here...
}

public block(id)
{
    client_print(id, print_chat, "test")
    return PLUGIN_HANDLED;
}


klippy 02-05-2016 15:20

Re: [HELP] Block gl_fog command?
 
It is a cvar, not a command. You can query for it and kick users if they have it set to 0, there's really nothing else you can do.


All times are GMT -4. The time now is 09:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.