Making a script to automatically set the fps to 131 on client connect and just wondering how you can get it to block a certain command?
Here's the script
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "FPS Blocker"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"
new fps_message[] = "You're FPS has been automatically set to 131"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver()
{
set_task(5.0,"fps_set")
}
public fps_set(id)
{
client_cmd(id,"fps_max 131")
client_cmd(id,"developer 1")
client_print(id,print_chat,"[CZ] %s",fps_message)
}
public client_disconnect(id)
{
remove_task(id)
}
I'm fairly new at this, so I'm not too sure on what to use.
I'm trying to block any FPS value of over 131.