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) == 1 || 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.