Raised This Month: $ Target: $400
 0% 

Armor [REQ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 04-04-2021 , 10:02   Armor [REQ]
Reply With Quote #1

Hello, i decided to ask if someone could make a simple plugin (if you have a free time), for CTs. If a CT kills T they get armor +1 for each kill. But it wont work for Ts. Hope you understood what i said. Thanks in advance!

Last edited by HowToRuski; 04-04-2021 at 10:02.
HowToRuski is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 04-04-2021 , 10:59   Re: Armor [REQ]
Reply With Quote #2

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)
    }
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
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
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-04-2021 , 20:35   Re: Armor [REQ]
Reply With Quote #4

Quote:
Originally Posted by HowToRuski View Post
So i tested it with podbots, doesnt seem to work when they are killing zombies. Im not getting any armor myself from their kills
test it with players.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 19:53.


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