Jump to content

Stuff team


TheBite

Recommended Posts

  • 1 month later...
Posted (edited)

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

My ingame nickname is: Mr.Snus

Posted

meta file is missing the info line ..

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted
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) 
  

  

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