- 0
Backpack Anti Theft - Whats wrong with this code?
-
Similar Content
-
- 2 replies
- 1145 views
-
- 6 replies
- 6789 views
-
loosing backpack while using player_humanityMorph ?
By meanbeandk,
- backpack
- player_humanityMorph
- (and 1 more)
- 10 answers
- 1313 views
-
- 7 replies
- 3086 views
-
[Release] Anti-Theft from locked vehicles by F507DMT [Working]
By F507DMT,
- Anti-Theft
- locked
- (and 2 more)
- 7 replies
- 3964 views
-
- Advertisement
Question
Markokil321
Hello,
Looking for some help with this Code i am trying to add to our server as a backpack theft protection when inside safezones. We had something similar up to now but it just didn't work very well.
I am adding this code to the bottom of my custom fn_gearMenuChecks.sqf which is called in the MPMission\compiles.sqf.
I've added comments trying to explain what it is doing (WE ALSO USE CUSTOM FRIENDLIST SYSTEM, so things may look strange)
THE CODE:
Point is that if you are inside a safezone and there is another player within 6m:
- if target player is not inside your friendslist = you cannot access their gear/backpack
- if you target a lootpile = no gear access
The problem is that it does not let me access anyones gear if there is another player within 6m, no matter if they are in my friendslist or not.
Very tired trying to figure out what could be wrong, does this code look allright?
Here's my whole fn_gearMenuChecks.sqf: http://pastebin.com/znjtWC8R
Any help is appreciated
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now