Please help me i want to make this script for teams
EX : team name police only can use it
MarkerCAS = createMarker ( 1228.583984375, 289.650390625, 19.5546875, "arrow", 1.5, 255, 255, 255, 255 )
MarkerSAID = createMarker ( 1664.4736328125, 3561.16015625, 9994.0859375, "arrow", 1.5, 255, 255, 255, 255 )
setElementInterior(MarkerCAS, 0)
setElementInterior(MarkerSAID, 101)
setElementDimension (thePlayer, 101 )
function IntSTAFF(thePlayer)
if source == MarkerCAS then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 101)
setTimer(setElementPosition, 1000, 1, thePlayer, 1658.34375, 3561.16015625, 9994.0859375, true)
setTimer(setPedRotation, 1000, 1, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), IntSTAFF)
function SaidSTAFF(thePlayer)
if source == MarkerSAID then
fadeCamera(thePlayer, false)
setTimer( fadeCamera, 1000, 1, thePlayer, true)
setTimer(setElementInterior, 1000, 1, thePlayer, 0)
setTimer(setElementPosition, 1000, 1, thePlayer, 1225.5654296875, 313.3662109375, 19.7578125, true)
setTimer(setPedRotation, 1000, 1, thePlayer, 0)
end
end
addEventHandler("onMarkerHit", getRootElement(), SaidSTAFF)