Raised This Month: $ Target: $400
 0% 

How do you block a client command?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 03-01-2009 , 00:04   How do you block a client command?
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
}
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.
shadow.hk is offline
Send a message via MSN to shadow.hk
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:00.


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