squshy7 Posted October 26, 2013 Report Share Posted October 26, 2013 Hate to start a thread for such a simple question, but Google isn't giving me any results. Is there a wildcard statement for playerids? I.e, I want if (_playerID == "12345678") to be if (_playerID == "wildcard goes here") Is it just a simple "%"? Link to comment Share on other sites More sharing options...
0 axeman Posted October 26, 2013 Report Share Posted October 26, 2013 What are you trying to achieve ? There are built in inString functions that could be used.. Link to comment Share on other sites More sharing options...
0 squshy7 Posted October 26, 2013 Author Report Share Posted October 26, 2013 We are toying with a multiple custom load out script for various donators (look through my posts I just posted in the thread), and we need a reliable way to call a load out for normal players. It's looking like we might just Use else if statements, though I WOULD like to know about playerid wildcards and if it's possible. Would you care to elaborate a little? Link to comment Share on other sites More sharing options...
0 FunkFest Posted October 26, 2013 Report Share Posted October 26, 2013 Why not make an array with all donator ID's serverside. OurDonators = [123456789,123456789,123456789,123456789]; Then send to clients via publicVariable then setup a AddPublicVariableEventHandler on clients then check for current connecting playersUID in OurDOnators. if (_playerUID in OurDonators) then { add donator load out. } else { add standard player loadout. }; Link to comment Share on other sites More sharing options...
0 axeman Posted October 26, 2013 Report Share Posted October 26, 2013 Have a good read through this: http://dayzepoch.com/forum/index.php?/topic/2638-donator-gear-with-database/ I think it has what you need :) Link to comment Share on other sites More sharing options...
Question
squshy7
Hate to start a thread for such a simple question, but Google isn't giving me any results. Is there a wildcard statement for playerids? I.e, I want
if (_playerID == "12345678")
to be
if (_playerID == "wildcard goes here")
Is it just a simple "%"?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now