Raised This Month: $ Target: $400
 0% 

This plugin doesn't work on paintball ( receive HE for kill from HE )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 01-25-2013 , 08:24   This plugin doesn't work on paintball ( receive HE for kill from HE )
Reply With Quote #1

Hello guys

Can someone of You help me, that this plugin will give HE_GRANADE on paintball? Normally, it gives, but on paintball not. Thanks!

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <colorchat>

#define PLUGIN "Granat"
#define VERSION ""
#define AUTHOR ""

new g_cPrefix; 

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        RegisterHam(Ham_TakeDamage, "player", "ham_postTakeDamage", 1);
	g_cPrefix = register_cvar("granat_prefix", "Hit4u.eu"); 
}
public ham_postTakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
    new szPrefix[10];
    get_pcvar_string(g_cPrefix, szPrefix, charsmax(szPrefix)); 
    
        if(damagebits == (1<<24) && this != idattacker && get_user_team(this) != get_user_team(idattacker) && damage >= float(get_user_health(this) && is_user_alive(idattacker) && is_user_connected(this)))
        {
                give_item(idattacker, "weapon_hegrenade");
                ColorChat(idattacker, GREEN, "[%s]^x03Otrzymales HE ^x01za zabicie wroga z granatu!", szPrefix);
        }
}
danonix 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 20:37.


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