Raised This Month: $ Target: $400
 0% 

help me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-01-2011 , 03:25   help me
Reply With Quote #1

Do I have wrong?

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("PLUGIN""VERSION""AUTHOR")
}

public 
client_connectid )
{
    if(
is_user_bot && is_user_hltv)
    {
        
query_client_cvar(id"fps_max""check_cl_rate")
    }
}

public 
check_cl_rate(id, const cvar[], const value[])
{
    new 
iValue str_to_num(value)

    if(
iValue 100)
    {
        
set_task(30.0"fc_menu_set")
    }
}

public 
fc_menu_set(id)
{
    new 
menu menu_create("\FPS Checker Menu :""fc_menu")

    
menu_additem(menu"\wYes""1"0)
    
menu_additem(menu"\wNo""2"0)

    
menu_display(idmenu0)
}

public 
fc_menu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
    }

    new 
data[6], szName[64]
    new 
accesscallback

    menu_item_getinfo
(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback)

    new 
key str_to_num(data)

    switch(
key)
    {
        case 
1:
        {
            
client_fps(id)
        }
        case 
2:
        {
            
client_kick(id)
        }
    }
    
menu_destroy(menu)
}

public 
client_fps(id)
{
    
client_cmd(id"fps_max 101")
}

public 
client_kick(id)
{
    
client_cmd(id"disconnect")

RuRuRu612754 is offline
 


Thread Tools
Display Modes

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 08:30.


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