Ekko Posted October 29, 2018 Share Posted October 29, 2018 (edited) 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) Edited October 29, 2018 by Ekko Link to comment
Dimos7 Posted October 29, 2018 Share Posted October 29, 2018 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 local pTeam = getPlayerTeam(thePlayer) if getTeamName(pTeam) == "Your team name here" 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 end addEventHandler("onMarkerHit", getRootElement(), IntSTAFF) function SaidSTAFF(thePlayer) if source == MarkerSAID then local pTeam = getPlayerTeam(thePlayer) if getTeamName(pTeam) == "Your team name here" 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 end addEventHandler("onMarkerHit", getRootElement(), saidTAFF ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now