Raised This Month: $ Target: $400
 0% 

Request: Slay / kick on fps_overrride 1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-07-2017 , 10:43   Re: Request: Slay / kick on fps_overrride 1
Reply With Quote #3

Quote:
Originally Posted by Ayman Khaled View Post
PHP Code:
#include <amxmodx>

#define VERSION "1.0"

public plugin_init()
    
register_plugin("No Fps-OverRide"VERSION"Ayman Khaled")

public 
client_putinserver(id)
{
    
set_task(0.1"First_Query"id)
}

public 
First_Query(id)
    if ( 
is_user_connected(id) )
        
query_client_cvar(id"fps_override""Fps_OverRide_Value")

public 
Fps_OverRide_Value(idszCvar[], szValue[])
{
    if ( 
is_user_connected(id) )
    {
        if ( 
szValue[0] != '0' || szValue[1] )
        {
                
server_cmd("kick #%d ^"fps_override 1 is not allowed on this server^""get_user_userid(id))
            return
        }
        
query_client_cvar(id"fps_override""Fps_OverRide_Value")
    }

Will this work??

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("fps_override 1""kick")
}

public 
kick(id)
{
    new 
name[70]
    
get_user_name(idnamecharsmax(name))
    
console_cmd(id"amx_kick %s"name)

__________________
And I Am Back.

Last edited by TheSpaniard; 10-07-2017 at 10:46.
TheSpaniard is offline
 



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 09:59.


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