PHP Code:
Line 148: RegisterHam(Ham_Touch, "weaponbox", "fw_touch_weapon")
Line 149: RegisterHam(Ham_Touch, "armoury_entity", "fw_touch_weapon")
Line 150: RegisterHam(Ham_Touch, "weapon_shield", "fw_touch_weapon")
PHP Code:
public fw_touch_weapon(weapon, id)
{
if (get_cvar_num("JbMod") == 1) {
if (!is_user_connected(id))
return HAM_IGNORED;
new players[32], pnum, tempid;
get_players(players, pnum, "a");
for( new i; i<pnum; i++ )
{
tempid = players[i];
}
if (touch_weapons[id] | touch_weapons[tempid])
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}
I hope this is a joke.
Also, cvar pointers usage is a must, and hook CmdStart to set some bpammo to 1 is not acceptable, find a smart way, and don't register twice the same forwards.
When all of this is done, PM some plugin approvers if you want to re-submit the plugin.
Unapproved for now.
__________________