• Limiting Player Weapons
    1 replies, posted
So i have came across this idea i would like to implement Like in cod black ops the player cant carry more than 2 weapons but he can open a menu and choose 2 Diferent weapons and then how would i modify this so if the player get a certain ability he can carry more weapons also how can i make the player drop his primary weapon once he dies? so another player can come pick it up and use it! any hints or help are appreciated
You need to use gamemode hooks, like GM:PlayerDeath( Victim, Inflictor, Killer ), but use the hook.Add method for addons, then you can do stuff when the player dies. Then you can get the players active weapon and spawn a copy on the ground when he is dead. As far as limiting the weapons, it would be with more hooks. I'd go on the wiki and read about the gamemode hooks.
Sorry, you need to Log In to post a reply to this thread.