Jump to content

SuperMan Script


Shwul

Recommended Posts

Posted

Hello,here is my problem.

I have a superman script and its working but i need to disable it for other players and make it only for the staff team anyone have an idea about that?

  • 2 weeks later...
Posted

Use

local accountname = getAccountName(getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) 

Posted
@Adde :

He said for staff team !

@Shwul :

Use these functions : getPlayerTeam - getTeamName - getTeamFromName

Oh, I thought for admins bcs I used it like that when I used superman script.

if getTeamName ( getPlayerTeam ( getLocalPlayer() ) ) == "Staff" then 

or

if ( getPlayerTeam ( getTeamFromName( "Staff" ) ) ) then 

should work for him.

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...