Jump to content
Sign in to follow this  
M_Mengxin

How do I bind the weapon to the vip player, other players will disappear when using the weapon

Recommended Posts

How do I bind the weapon to the vip player, other players will disappear when using the weapon

Share this post


Link to post
Share on other sites
On 2/3/2022 at 10:50 PM, M_Mengxin said:

How do I bind the weapon to the vip player, other players will disappear when using the weapon

The simplest way but that might be too not optimized is override the mission. But it shall done it through the mod on client side. And define nesesary RPC event to sync list between your server with configs and player X client.

So idea is - client X picking the weapon, override event when client are take something, we shall get EntityAI as parameter like item that olayer got. Then you shall check item type for example blocked weapon for all is SKS and vip players may carry it. Check is entityai kindof "sks" (but better SKS_Base, coz game also has sks_black & sks_green) if true - throw away the weapon or just remove it from player's inventory, in other cases - do nothing.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×