Jump to content
  • 0

syntax for wildcard playerid?


squshy7

Question

4 answers to this question

Recommended Posts

  • 0

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

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...