JPzin Posted March 29 Share Posted March 29 Alguem Teria um script que é só um Marker mais se eu tiver com acl pm spawnar uma vtr e se eu tiver com a acl samu spawn uma vtr da samu no mesmo marker ? Link to comment
WWW Posted March 29 Share Posted March 29 Coloque o código abaixo em servidor: local spawn = createMarker(0, 0, 0, "cylinder", 1, 255, 255, 255, 255) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("SAMU")) then if getPedOccupiedVehicle(element) == false then local x, y, z = getElementPosition(element) local v = createVehicle(551, x, y, z) warpPedIntoVehicle(element, v) end end end end) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("PM")) then if getPedOccupiedVehicle(element) == false then local x, y, z = getElementPosition(element) local v = createVehicle(551, x, y, z) warpPedIntoVehicle(element, v) end end end end) Link to comment
JPzin Posted March 30 Author Share Posted March 30 cara não é querer pedir muit mais existe um igual assim só que de skin, (deu certo esse) Link to comment
WWW Posted March 30 Share Posted March 30 local spawn = createMarker(0, 0, 0, "cylinder", 1, 255, 255, 255, 255) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("SAMU")) then setElementModel(element, 274) end end end) addEventHandler("onMarkerHit", spawn, function(element) if getElementType(element) == "player" then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(element)), aclGetGroup("PM")) then setElementModel(element, 280) end end 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