View Single Post
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-19-2020 , 17:27   Re: Map Weapon Touch Pickup
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Code:
RegisterHam(Ham_Use, "game_player_equip", "fw_use_pequip") public fw_use_pequip(ent , caller) {   }
so i tried what you said it hooks onto the player perfectly and thanks for that but unfortnately when i try the code below it strips the player ( something i don't want to happen )
i can make it simple by silent killing him but i would rather deal with it more professionaly and block it off completely,

any help would be much apprecieted ^^

PHP Code:
public fw_use_pequip(ent caller)
{
    
    if(
get_user_team(caller) != 2)
    return 
HAM_SUPERCEDE
 

Ynet is offline