Jump to content

Check players team...


Xeno

Recommended Posts

Posted

NVM: I WAS TESTING IT WRONG, LOLOLOL

I know, its the easeist thing in the world, but its gone right out my head and I have no clue how to do it???

I know you have to check the team... I came up with this, but its a mess:

local police = getTeamFromName("Police") 
playerteam = getPlayerTeam (source) 
if playerteam == police then  

Thanks,

Xeno

Posted

Like this ?

  
local team = getPlayerTeam(source) 
if team then 
    local police = getTeamFromName("police") 
    if (team == police)then 
        -- He is Police Team 
    end 
else 
    -- He is not in any team 
end 
  
  

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