Raised This Month: $ Target: $400
 0% 

Block Commands Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-25-2007 , 21:32   Re: Block Commands Help
Reply With Quote #1

Im also new to this, but ill try.
Note: Untested
PHP Code:
#include <amxmodx>
#include <amxmisc>

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

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("amx_getcvar""cmd_get"0"usage: <userid> <cvar>  eg. amx_getcvar cheap_suit volume")
}

public 
cmd_get(id
{
    new 
arg1[32], arg2[32]
    
read_argv(1arg131)
    
read_argv(2arg231)

    new 
player cmd_target(idarg110)
    if(!
player)
        return 
PLUGIN_HANDLED
    
    query_client_cvar
(playerarg2"cvar_result")
    
    return 
PLUGIN_HANDLED
}

public 
cvar_result(id, const cvar[] , const value[])
{
    new 
name[32]
    
get_user_name(idname31)
    
client_print(0print_chat"%s's %s cvar value is %s"namecvarvalue)

Also you can check tis plugins out:
http://forums.alliedmods.net/showthread.php?t=46198
http://forums.alliedmods.net/showthread.php?p=155936
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Reply



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 00:38.


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