Raised This Month: $51 Target: $400
 12% 

Help / Support [HELP] armorer human


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 05-08-2012 , 03:02   [HELP] armorer human
Reply With Quote #1

sup everybody, i was testing the human armorer sma of Joker Laugh and if it works but the problem is that all human classes have armor also, how I can fix this?

this is the code:

PHP Code:
#include <amxmodx>
#include <fun>
#include <zp50_class_human>
#include <zp50_core>
#include <zp50_colorchat>
#include <cstrike>

// Raptor Human Attributes
new const humanclass2_name[] = "Armorer Human"
new const humanclass2_info[] = "Gets armor"
new const humanclass2_models[][] = { "terror" }
const 
humanclass2_health 100
const Float:humanclass2_speed 1.1
const Float:humanclass2_gravity 1.0

new g_HumanClassIDcvar_armor

public plugin_precache()
{
    
register_plugin("[ZP] Class: Human: Pounder"ZP_VERSION_STRING"ZP Dev Team")
    
    
g_HumanClassID zp_class_human_register(humanclass2_namehumanclass2_infohumanclass2_healthhumanclass2_speedhumanclass2_gravity)
    new 
index
    
for (index 0index sizeof humanclass2_modelsindex++)
        
zp_class_human_register_model(g_HumanClassIDhumanclass2_models[index])
        
    
cvar_armor register_cvar("zp_class_human_armorer""40")
}

public 
zp_fw_core_spawn_post(id)
{
    if (
zp_class_human_get_current(id) == g_HumanClassID)
    {
        
zp_colored_print(id"You are using^x04Armorer hclass^x01, you now have^x04%s^x01 armor."get_pcvar_num(cvar_armor))
        
cs_set_user_armor(idget_pcvar_num(cvar_armor), CS_ARMOR_KEVLAR)
    }
    return 
PLUGIN_HANDLED;

wicho is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-08-2012 , 04:26   Re: [HELP] armorer human
Reply With Quote #2

set to zero zp_human armor in ZP.cfg
__________________
jc980 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 05-08-2012 , 05:19   Re: [HELP] armorer human
Reply With Quote #3

Already at zero and still have armor...
wicho 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 14:11.


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