Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local restricted = {
- ["dodge_charger_2015_police_lw"]=true,
- }
- hook.Add( "CanPlayerEnterVehicle", "cop_vehicles_restriction", function( ply, veh )
- local Team = ply:Team()
- if restricted[veh.VehicleName] and Team~=TEAM_MEDIC and Team~=TEAM_POLICE then
- ply:ChatPrint( "Vous n'êtes pas autorisé à conduire ce véhicule." )
- return false
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement