Help with Quick Weapon change
#1

How to set the player unable to quick change from his current weapon to his another weapon.

Like you need to click it to your inventory before you can use your another weapon.

I got Inventory System.

Any tutorial?
Reply
#2

Код:
public OnPlayerUpdate(playerid)
{
         if(GetPlayerWeapon(playerid) != WeaponIDFromInventory[playerid])
         {
               SetPlayerArmedWeapon(playerid, WeaponIDFromInventory[playerid]);
         }
}
I gave you an idea, it is up to you to modify it and make it work with your script properly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)