• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team
    • jhxp

      Multi Theft Auto: San Andreas 1.5.4 is out!   21/04/17

      Click the link in the announcement for more details.  

kewizzle

Members
  • Content count

    127
  • Joined

  • Last visited

Community Reputation

3 Neutral

1 Follower

About kewizzle

  • Rank
    Poot-butt
  • Birthday 11/12/96

Details

  • Gang
    CumDrop
  • Location
    Nebraska, USA
  • Occupation
    Scripter
  • Interests
    MTASA, Zombies, Scripting, Programming

Recent Profile Visitors

276 profile views
  1. alright well i played with it couldnt get it to work lol so i just decided to attach the ped to the player. I dont like it but for now i guess i will have to stick with it.
  2. alright lol :~ well i will see what i can cook up
  3. youre really good at scripting so im wondering okay so i got this function hitSurv(playerSource) outputChatBox(getPlayerName(playerSource).." Has Collected The Survivor!", server, 0, 255, 0) destroyElement(survivorMarker) destroyElement(survivorBlip) setElementData(playerSource, "hasSurv", true) toMarker = createMarker(-719, 951, 11, "cylinder", 3, 255, 0, 255, 150, playerSource) saveBlip = createBlipAttachedTo( toMarker, 22 ) setPedAnimation( survivorPed, "ped", "WOMAN_run") addEventHandler("onMarkerHit", toMarker, hitSurvDes) end i need the ped to follow me once i hit the marker but all i got it to do is run. is there a way to use setPedLookAt to work with the server side created ped?
  4. works but aye i can fix the easy errors, I like to speed up the process by posting tho cuz im working on it as you professionals help. Im a moderate scripter i guess.
  5. it doesnt work i get the error bad argument at createMarkerAttachedTo expected element at argument 1 got boolean and when i remove that line(which is needed for further development) i get 3 more errors, createPed expected element at argument 1 got nil and createBlipAttachedTo element expected at argument 1 got boolean and addEventHandler expected element at argument 2 got boolean
  6. already returned it. It works perfect except the random stuff.
  7. now a single ped spawns but still gives the debug error as well as doesnt destroy the elements onPedWasted or respawn.
  8. expected element at argument 2 for addEventHandler onPedWasted
  9. each time the spawnSurvivor function is called by setTimer it spawns a new survivorPed with a random location in the table and a random skin. Basically onPedWasted it destroys the ped, blimp and marker and then 15 seconds later respawns somewhere else, kinda like breifcase.
  10. still not working as it should, both scripts however did a random spawn and skin on each resource restart tho.
  11. local spawns = { { -786, 893, 13, 90.0 }, { -767, 882, 13, 120.6928 } } local livingPeds = { { 0 }, { 104 } }
  12. so I am trying to create a random survivor script and when the first survivor dies survivorPed it also destroys elements survivorMarker, survivorBlip and survivorPed. But when the next survivor spawns it does not do that and it does not spawn a survivor after 15 seconds. addEventHandler("onResourceStart", root, function() function spawnSurvivor() survivorPed = createPed(livingPeds[rnd2][1], spawns[rnd][1], spawns[rnd][2], spawns[rnd][3], spawns[rnd][4]) survivorMarker = createMarkerAttachedTo ( survivorPed, "cylinder", 4.0, 0, 0, 255, 255 ) survivorBlip = createBlipAttachedTo( survivorPed, 47 ) outputChatBox("The Survivor Was Saved! New one spawning soon.") end spawnSurvivor() addEventHandler("onPedWasted", survivorPed, function() outputChatBox("The Survivor Was Saved! New one spawning soon.") destroyElement(survivorMarker) destroyElement(survivorBlip) destroyElement(survivorPed) setTimer(spawnSurvivor, 15000, 1) end) end) this works but now the location isnt random function spawnSurvivor() survivorPed = createPed(livingPeds[rnd2][1], spawns[rnd][1], spawns[rnd][2], spawns[rnd][3], spawns[rnd][4]) survivorMarker = createMarkerAttachedTo ( survivorPed, "cylinder", 4.0, 0, 0, 255, 255 ) survivorBlip = createBlipAttachedTo( survivorPed, 47 ) outputChatBox("The Survivor Was Saved! New one spawning soon.") addEventHandler("onPedWasted", survivorPed, function() outputChatBox("The Survivor Was Saved! New one spawning soon.") destroyElement(survivorMarker) destroyElement(survivorBlip) destroyElement(survivorPed) setTimer(spawnSurvivor, 15000, 1) end) end addEventHandler("onResourceStart", root, function() spawnSurvivor() end)
  13. i sent you the wrong code i meant this function OpenWindow(thePlayer) local _, _, mZ = getElementPosition(source) -- Marker position local _, _, pZ = getElementPosition(hitElement) -- Player position if thePlayer == getLocalPlayer() and (getElementData(localPlayer,"Level")) <= 59 and pZ <= mZ + 3 then outputChatBox("You must be atleast Level 60 to access the Special Weapon Shop!", 255, 0, 0) else if ( guiGetVisible ( specialWshop ) == false ) and thePlayer == getLocalPlayer() then guiSetVisible ( specialWshop, true ) showCursor ( true ) end end end end addEventHandler("onClientMarkerHit", special, OpenWindow) addEventHandler("onClientMarkerHit", specialSC, OpenWindow) yours works tho
  14. doesnt open at all now function OpenWindow(thePlayer) local _, _, mZ = getElementPosition(source) -- Marker position local _, _, pZ = getElementPosition(hitElement) -- Player position if thePlayer == getLocalPlayer() and (getElementData(localPlayer,"Level")) <= 59 then outputChatBox("You must be atleast Level 60 to access the Special Weapon Shop!", 255, 0, 0) else if ( guiGetVisible ( specialWshop ) == false ) and thePlayer == getLocalPlayer() then guiSetVisible ( specialWshop, true ) showCursor ( true ) end end end addEventHandler("onClientMarkerHit", special, OpenWindow) addEventHandler("onClientMarkerHit", specialSC, OpenWindow)
  15. ill try this out in a little bit.