Então pessoal, eu sou novo com script, porém eu estava trabalhando com um baixado na net e, em seguida, eu usei o código: if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Civil")) then
Porém não funfou. Queria ajuda para fazer ele pegar. Fico muito feliz em tirar uma dúvida e me ajudar a resolver esse problema. Meu código todo:
iniMarker = createMarker( 2911.1416015625, -1961.9196777344, 10.106250762939, "cylinder", 1.5, 255,255,255,50)
iniMarker1 = createMarker( 2911.5544433594, -1957.5307617188, 10.106250762939, "cylinder", 1.5, 255,255,255,50)
iniMarker2 = createMarker( 2911.056640625, -1965.8560791016, 10.106250762939, "cylinder", 1.5, 255,255,255,50)
destroyM = createMarker( 2904.9248046875, -1976.654296875, 10.106250762939, "cylinder", 1.9, 255,0,0,100)
veh = {}
function spawnVehicle(player)
if isElementWithinMarker(player, iniMarker) then
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Civil")) then
if veh[player] and isElement( veh[player] ) then destroyElement(veh[player])
veh[player] = nil
end
veh[player] = createVehicle(560, 2898.6862792969, -1975.8170166016, 11.106250762939)
warpPedIntoVehicle(player, veh[player])
end
end
end
addEventHandler("onMarkerHit", iniMarker, spawnVehicle)
function spawnVehicle(player)
if isElementWithinMarker(player, iniMarker1) then
if veh[player] and isElement( veh[player] ) then destroyElement(veh[player])
veh[player] = nil
end
veh[player] = createVehicle(596, 2883.9631347656, -1973.9578857422, 11.106250762939)
warpPedIntoVehicle(player, veh[player])
end
end
addEventHandler("onMarkerHit", iniMarker1, spawnVehicle)
function spawnVehicle(player)
if isElementWithinMarker(player, iniMarker2) then
if veh[player] and isElement( veh[player] ) then destroyElement(veh[player])
veh[player] = nil
end
veh[player] = createVehicle(468, 2879.7241210938, -1977.0021972656, 11.106250762939)
warpPedIntoVehicle(player, veh[player])
end
end
addEventHandler("onMarkerHit", iniMarker2, spawnVehicle)
function destroy(player)
if isElementWithinMarker(player, destroyM) then
if isPedInVehicle(player) == true then
destroyElement(veh[player])
outputChatBox("", player, 255,0,0,true)
else
outputChatBox("", player, 255,0,0,true)
end
end
end
addEventHandler("onMarkerHit", destroyM, destroy)