Jump to content

[HELP] admin spawn


Recommended Posts

hi guys.

 

give me a script for set spawn acl group "Admin"

example : all Admins on join spawn at 1040.21, 1037.02, 11

like : acl group "Admin" when join server spawn at 1040.21, 1037.02, 11 and when killing spawn at 1040.21, 1037.02, 11

 

tnx

 

Edited by MRThinker
Link to comment
addEventHandler("onPlayerLogin", root, function() 
    acc = getPlayerAccount(source) 
    accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then
      setElementPosition(source, 1040.21, 1037.02, 11)
     end
end) 

 

Edited by Dimos7
Link to comment
21 hours ago, Dimos7 said:

addEventHandler("onPlayerLogin", root, function() 
    acc = getPlayerAccount(source) 
    accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName,aclGetGroup("admin")) then
      setElementPosition(source, 1040.21, 1037.02, 11)
     end
end) 

 

thanks

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