Raised This Month: $ Target: $400
 0% 

Armor [REQ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 04-04-2021 , 11:06   Re: Armor [REQ]
Reply With Quote #3

Quote:
Originally Posted by raizo11 View Post
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

public plugin_init() 
{
    RegisterHam(Ham_Killed, "player", "fw_PlayerKilled", 1)
}

public fw_PlayerKilled(iVictim, iKiller)  
{
    if (iVictim == iKiller || !is_user_alive(iKiller)) 
        return
    
    if(cs_get_user_team(iKiller) == CS_TEAM_CT)
    {
        set_user_armor(iKiller,get_user_armor(iKiller) + 1)
    }
}
So i tested it with podbots, doesnt seem to work when they are killing zombies. Im not getting any armor myself from their kills
HowToRuski 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 19:53.


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