Jump to content

Stuff team


TheBite

Recommended Posts

  • 1 month later...

server.lua

BaWstaff = createTeam ( "BaWstaff", 100, 100, 100 ) 
  
function enterTEAM (player ) 
local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Admin" ) ) or hasObjectPermissionTo( player, 'function.kickPlayer', false ) then 
   setPlayerTeam ( player, BaWstaff) 
   setElementModel( player, "217" ) 
   setPlayerNametagColor ( player, 100, 100, 100 ) 
end 
addCommandHandler("joinstaff",enterTEAM) 
  

meta.xml

"Me" version="1.0" type="script"/> 

This will create a team with name BaWstaff. Only Admins, Supermoderators, moderators will be able to enter the team (those who can kick players). The command to join team is /joinstaff

Edited by Guest
Link to comment
server.lua
BaWstaff = createTeam ( "BaWstaff", 100, 100, 100 ) 
  
function enterTEAM (player ) 
local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Admin" ) ) or hasObjectPermissionTo( player, 'function.kickPlayer', false ) then 
   setPlayerTeam ( player, BaWstaff) 
   setElementModel( player, "217" ) 
   setPlayerNametagColor ( player, 100, 100, 100 ) 
end 
addCommandHandler("joinstaff",enterTEAM) 
  

meta.xml

"Me" version="1.0" type="script"/> 

This will create a team with name BaWstaff. Only Admins, Supermoderators, moderators will be able to enter the team (those who can kick players). The command to join team is /joinstaff

Take a look at setElementModel's syntax.

Link to comment
server.lua
BaWstaff = createTeam ( "BaWstaff", 100, 100, 100 ) 
  
function enterTEAM (player ) 
local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Admin" ) ) or hasObjectPermissionTo( player, 'function.kickPlayer', false ) then 
   setPlayerTeam ( player, BaWstaff) 
   setElementModel( player, "217" ) 
   setPlayerNametagColor ( player, 100, 100, 100 ) 
end 
addCommandHandler("joinstaff",enterTEAM) 
  

meta.xml

"Me" version="1.0" type="script"/> 

This will create a team with name BaWstaff. Only Admins, Supermoderators, moderators will be able to enter the team (those who can kick players). The command to join team is /joinstaff

BaWstaff = createTeam ( "BaWstaff", 100, 100, 100 ) 
  
function enterTEAM (player ) 
local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Admin" ) ) or hasObjectPermissionTo( player, 'function.kickPlayer', false ) then 
   setPlayerTeam ( player, BaWstaff) 
   setElementModel( player, 217 ) 
   setPlayerNametagColor ( player, 100, 100, 100 ) 
            end 
end 
addCommandHandler("joinstaff",enterTEAM) 
  

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