Hello,
Was wondering if anyone know how to make a Team/Job immune to being arrested by the Arrest Stick?
Thank You.
In the arrest stick code, before you run the arrest function, do a check on the player's job.
Do you mind typing up the code for me?
[QUOTE=Darkblizzard;45002235]Do you mind typing up the code for me?[/QUOTE]
[code] if IsValid(ent) and ent:IsPlayer() and ent:Team() == TEAM_WHATEVER then
DarkRP.notify(self.Owner, 1, 5, "Team is immune from arrest!")
return
end[/code]
Add this to the PrimaryAttack().
Anywhere in the coding but in "PrimaryAttack()" section, correct?
Sorry, you need to Log In to post a reply to this thread.