btw this script does not account for if the player already has 2 guns or 3 guns with mule kick, this causes you to get samantha'd and lose all weapons and money. TO FIX THIS. use this function instead of GiveWeapon, zm_weapons::weapon_give. Youre line should look like this player zm_weapons::weapon_give(weapon);
@Program11513 күн бұрын
Ah, good find. The weapon was only used as an example but certainly something I'll use going forward. I've pinned this should anyone run into the same issue.
@Antonanzas73422 сағат бұрын
How do you delete the trigger only for player1? For example If there were 4 players in a match and P1 takes a raygun, can P2, P3 and P4 still take it?
@Program11519 сағат бұрын
You wouldn't want to delete the trigger but instead track when a player has triggered it and check the state of this when the trigger is pressed so it only gives the reward for those who haven't triggered it yet. There's a few ways but I think the easiest would be to use an array to track when a player has triggered it (dedicated video on this) where each entry corresponds to a player (0-3) and is true/false.
@Antonanzas73416 сағат бұрын
@@Program115 Thank you! I'm following your tutorials now they are very helpful. Thanks for your work
@P.viridis16 күн бұрын
Is it possible to have a use trigger but it gives the player a perk (and shows the drinking animation)?
@Program11516 күн бұрын
Yup! Each video will show more advanced stuff. I have a video planned on checking a players points which is using an example of a vending machine (buy & drink perk) in a few videos time.