asd123
Members-
Posts
149 -
Joined
-
Last visited
Everything posted by asd123
-
Solidsnake there is an error i found on the debugscript here is the picture : http://postimg.org/image/kk0xpuyx1/
-
Like i said i cant my server will not allow people to join
-
oh thanks is there anyway i know it will work because it needs 3 or more to test and when i played it with myself there is no evidence that it has worked.
-
Seriously? you obviously didn't check, because it has several. local timeleft = 60 -- Seconds till robber escapes. local rmodel = 495 -- Robber vehicle ID. local pmodel = 599 -- Police vehicle ID. addEvent ( "onMapStarting", true ) addEventHandler ( "onMapStarting", root, function ( ) -- BLIP REMOVAL LOOP for i,v in ipairs(getElementsByType("player")) do local elements = getAttachedElements(v) for i,v in ipairs(elements) do if (getElementType(v) == "blip") then setElementVisibleTo(v, root, false) -- This temporary makes the blip invisable. end end end -- ASSIGNATION LOOP for i,v in ipairs(getElementsByType("player")) do local theVehicle = getPedOccupiedVehicle (v) if theVehicle then -- If the player is in a vehicle. if getElementModel(theVehicle) == tonumber(rmodel) then -- If it's the robber vehicle. robberblip = createBlipAttachedTo(theVehicle, 23) -- Creates a skull blip attached to the robber. elseif getElementModel(theVehicle) == tonumber(pmodel) then -- If it's the police vehicle. policeblip = createBlipAttachedTo(theVehicle, 30) -- Creates a siren blip attached to all cops. end end end setTimer( function() outputChatBox("Robber wins!", root, 255, 0, 0, true) for i, v in ipairs(getElementsByType("player")) do setElementHealth(v, 0) end end, timeleft*1000, 1 ) end ) addEventHandler("onPlayerWasted", root, function() if getElementModel(getPedOccupiedVehicle(source)) == tonumber(rmodel) then for i, v in ipairs(getElementsByType("player")) do setElementHealth(v, 0) end outputChatBox("Cops win!", root, 255, 0, 0, true) end end ) addEventHandler("onResourceStop", root, function() for i,v in ipairs(getElementsByType("player")) do local elements = getAttachedElements(v) for i,v in ipairs(elements) do if (getElementType(v) == "blip") then setElementVisibleTo(v, root, true) -- This makes the blip visable again. destroyElement(policeBlip) -- This destroys the temporary blip we made. destroyElement(robberBlip) -- This destroys the temporary blip we made. end end end end ) Sorry i am new to these kinds of things How can i fix it?
-
this is what is written on the meta.
-
Hey all i am trying to make this script work for my map its meant to be cops and 1 robber (race gamemode) the problem is that the script does not want to start i have no clue why. The map should end after the robber is dead but it does not. I would really like your help here is the script: local timeleft = 60 -- Seconds till robber escapes. local rmodel = 495 -- Robber vehicle ID. local pmodel = 599 -- Police vehicle ID. addEvent("onMapStarting", true) addEventHandler("onMapStarting", root, function() -- BLIP REMOVAL LOOP for i,v in ipairs(getElementsByType("player")) do local elements = getAttachedElements(v) for i,v in ipairs(elements) do if (getElementType(v) == "blip") then setElementVisibleTo(v, root, false) -- This temporary makes the blip invisable. end end end -- ASSIGNATION LOOP for i,v in ipairs(getElementsByType("player")) do local theVehicle = getPedOccupiedVehicle (v) if theVehicle then -- If the player is in a vehicle. if getElementModel(theVehicle) == tonumber(rmodel) then -- If it's the robber vehicle. robberblip = createBlipAttachedTo(theVehicle, 23) -- Creates a skull blip attached to the robber. elseif getElementModel(theVehicle == tonumber(pmodel) then -- If it's the police vehicle. policeblip = createBlipAttachedTo(theVehicle, 30) -- Creates a siren blip attached to all cops. end end end end setTimer( function() outputChatBox("Robber wins!", root, 255, 0, 0, true) for i, v in ipairs(getElementsByType("player")) do setElementHealth(v, 0) end end, timeleft*1000, 1 ) end ) addEventHandler("onPlayerWasted", root, function() if getElementModel(getPedOccupiedVehicle(source)) == tonumber(rmodel) then for i, v in ipairs(getElementsByType("player")) do setElementHealth(v, 0) end outputChatBox("Cops win!", root, 255, 0, 0, true) end end ) addEventHandler("onResourceStop", root, function() or i,v in ipairs(getElementsByType("player")) do local elements = getAttachedElements(v) for i,v in ipairs(elements) do if (getElementType(v) == "blip") then setElementVisibleTo(v, root, true) -- This makes the blip visable again. destroyElement(policeBlip) -- This destroys the temporary blip we made. destroyElement(robberBlip) -- This destroys the temporary blip we made. end end end end end
-
This is not my video but i want to share it
-
If i was you i would make a race DM/DD server but thats my choice.
-
But i thought the world trade center collapsed in 2001?
-
I hope you can make it in english it would open up more of an audience.
-
Hey all im testing my quality test and want some feedback thanks Watch in HD
-
Too bad its not english could have had more players on this
-
Not surprised, you are the best mapper on mta.
-
Dont bother with this site all the scripts are stolen the race and userpanel are from xG and the toptimes are stolen from -ftw-
-
Decent track
-
haha funny what server is this ?
-
This is not my map it belongs to -ffs-ClaudiO watch in hd
-
he is such a joke people like should get a life
-
Love it going to make a [RUN] map
-
hey i could help i guess add me on skype maj.alshibly1