Darkrp TEAM script <.<

So could anyone tell me how i could make it so that if i had a function that had said that if the players TEAM was say TEAM_MAYOR it would allow or disallow a certain tool?

For example if its :

if ply:Team() == TEAM_MAYOR then

What do i add under it so that it will allow a toolgun or weapon for the mayor but disallow for the other teams?



Take a look at that.

Thanks :wink: Il take a look once they fix the gmod wiki cause its down -_-