enzopaul4 Posted September 29, 2016 Share Posted September 29, 2016 Hello , i want to make a script , like when a player is login and his account is on the VIP group then to set this player server automaticaly to the VIP team (on scoreboard) Link to comment
Dealman Posted September 29, 2016 Share Posted September 29, 2016 You'll want to make a server-sided script for this. First off, start with using the event onPlayerLogin, this will trigger an event every time a player logs in. Now that you have a player element, you can use getPlayerAccount to get the player's account and then use isObjectInACLGroup to check if that account belongs in a specific group - such as VIP. If the player is a VIP, you then use setPlayerTeam to set the player to the team you want. That should be all you need, you have plenty of examples on how to use the event and the functions on the wiki. 1 Link to comment
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