Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local restricted = {
  2. ["dodge_charger_2015_police_lw"]=true,
  3. }
  4. hook.Add( "CanPlayerEnterVehicle", "cop_vehicles_restriction", function( ply, veh )
  5. local Team = ply:Team()
  6. if restricted[veh.VehicleName] and Team~=TEAM_MEDIC and Team~=TEAM_POLICE then
  7. ply:ChatPrint( "Vous n'êtes pas autorisé à conduire ce véhicule." )
  8. return false
  9. end
  10. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement