illestiraqi Posted June 2, 2012 Share Posted June 2, 2012 This is beside the LS PD, Just go to Pershing Square in the middle than go exactly West, and you will find the marker, but if you go in it, it wont get you into the skin automatically and wont bring you to team group pf SWAT. Please Help! local Skinmarker = createMarker(1281, -1664.0999755859, 12.5, "cylinder", 1.0, 0, 0, 651, 255) -- umkleide local theTeam = createTeam( "SWAT Team", 0, 0, 651 ) addEventHandler("onMarkerHit", Skinmarker, function(hitElement) if(isPedInVehicle(hitElement)) then return end if not(isSWAT(hitElement)) then return end setElementModel(hitElement, 285) setPlayerTeam(hitElement, theTeam) end) function isSWAT(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SWAT" ) ) then return true; else return false; end end Link to comment
Jaysds1 Posted June 2, 2012 Share Posted June 2, 2012 if this doesn't work then I'm going to need you to post or PM me your whole script, try this: local Skinmarker = createMarker(1281, -1664.0999755859, 12.5, "cylinder", 1.0, 0, 0, 651, 255) -- umkleide local theTeam = createTeam( "SWAT Team", 0, 0, 651 ) addEventHandler("onMarkerHit", Skinmarker,function(hitElement) if(not isPedInVehicle(hitElement)) then if(isSWAT(hitElement)) then setElementModel(hitElement, 285) setPlayerTeam(hitElement, theTeam) end end end) function isSWAT(thePlayer) local accName = if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "SWAT" ) ) then return true; else return false; end end Link to comment
myonlake Posted June 2, 2012 Share Posted June 2, 2012 local marker = createMarker(1281, -1664.0999755859, 12.5, "cylinder", 1.0, 0, 0, 651, 255) local team = createTeam("SWAT Team", 0, 0, 651) addEventHandler("onMarkerHit", marker, function(hitElement, matchingDimension) if getElementType(hitElement) == "player" then if matchingDimension then if isPedInVehicle(hitElement) then return end if not isSWAT(hitElement) then return end setElementModel(hitElement, 285) setPlayerTeam(hitElement, team) end end end ) function isSWAT(player) return isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("SWAT")) end 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