• DarkRP getting players team name?
    3 replies, posted
Hello everyone, I remember seeing a way to get the players team name in DarkRP. Right now im using this method: [CODE] function ENT:Use( activator, caller) if team.GetName(activator:Team()) == "Mayor" then[/CODE] But i'm pretty sure there was a way that returns something like TEAM_MAYOR or something similar. Someone mind telling me the proper way to get the players job in DarkRP? (If i didnt do it correctly)
[code] if activator:Team() == WHATEVER then [/code]
[QUOTE=NiandraLades;46479124][code] if activator:Team() == WHATEVER then [/code][/QUOTE] Thanks a tonne mate
you could also use ply:getDarkRPVar("job") == "whatever"
Sorry, you need to Log In to post a reply to this thread.