Raised This Month: $ Target: $400
 0% 

read kill??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 06-07-2020 , 14:41   read kill??
Reply With Quote #1

PHP Code:

new g_has_kill[33];

public 
plugin_init()
{
        
pbnade register_cvar("amx_pbnade""1");    //activate paintball grenade
    
gnade register_cvar("amx_getnade""2");   //give a grenade the next round if you killed someone
}

public 
player_weapons(id)
    if (
is_user_alive(id))
    {
if (
get_pcvar_num(pbnade))
            if (
get_pcvar_num(gnade) == || g_has_kill[id])
            {
                
fm_give_item(id"weapon_hegrenade");
                
g_has_kill[id] = 0;
            }

Hello I would like to modify this part of the script, so that instead of reading all the kills, only read when you kill an enemy of the other team, currently it works as if you kill any of any team or commit suicide gives you a grenade.
Arje 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 17:06.


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