Raised This Month: $ Target: $400
 0% 

Kevlar v helm


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
A.B.
Member
Join Date: Nov 2009
Old 11-30-2009 , 01:01   Kevlar v helm
Reply With Quote #1

I'm trying to pull kevlarvhelm cvar, however it doesn't seem to work.
get_user_armor is the only thing that I got to compile successfully.

What am I doing wrong.

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
 
#define ADMIN_LEVEL ADMIN_LEVEL_A
 
new cvar, num_of_armor
 
public plugin_init()
{
    register_event("ResetHUD", "hook_resethud", "be")
 
    cvar = register_cvar("armor_enabled", "1")
    num_of_armor = register_cvar("admin_armor", "200")
}
 
 
public hook_resethud(id)
{
    if(get_pcvar_num(cvar) < 1)
    return PLUGIN_CONTINUE
 
    if(get_user_flags(id) & ADMIN_LEVEL)
    set_user_armor(id, get_user_armor(id) + get_pcvar_num(num_of_armor))
 
    return PLUGIN_CONTINUE
}
P.S.
Is it possible to assign a specific amount of gravity to a target?

Last edited by A.B.; 11-30-2009 at 01:05. Reason: Diet cawk
A.B. 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 13:41.


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