Jump to content

changing from account access to team access


5150

Recommended Posts

how can i make these two scripts changed, so instead of being able to add an account to have access, i can add an entire team to have access. (theyre in the same .lua, but i figured itd be easier to split it). basically i dont want to have to add their account name every time i get a new gang member. i just want to change them to my team and thats it...

  Reveal hidden contents

^^^^^ thats the top part of the .lua

  Reveal hidden contents

^^^^^^ theres whats important in the bottom part. any help is awesome, thanks. team name is Psycho Mans Gang caps included

Link to comment
  mint3d said:
if hasObjectPermissionTo(thePlayer, "user.guitarist5150", true) then --Specify who can enter the zone 
  
if getTeamName(thePlayer, "Psycho Mans Gang") then 

Replace that line with the one above and that will work if the team is on the scoreboard

Dude, those lines you wrote won't work.

  
local team = getPlayerTeam(source) 
if team and getTeamName(team) == "Random Gang" then 
-- your crap  
end 
  

Link to comment
  Markeloff said:
  mint3d said:
if hasObjectPermissionTo(thePlayer, "user.guitarist5150", true) then --Specify who can enter the zone 
  
if getTeamName(thePlayer, "Psycho Mans Gang") then 

Replace that line with the one above and that will work if the team is on the scoreboard

Dude, those lines you wrote won't work.

  
local team = getPlayerTeam(source) 
if team and getTeamName(team) == "Random Gang" then 
-- your crap  
end 
  

thanks bro. so i replace what with this? or just add it

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...