Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Chrimam

  • Rank
  • Birthday 04/05/1995


  • Location
  1. Thanks I will test it asap. If some errors occur and i can't fix, i will be here waiting for your help
  2. if not isElement ( tMark ) then tMark = createBlipAttachedTo( tPlayer, 0, 2, 255, 255, 255, 255, 0, 99999.0, g_Local) These lines would be useless if i want to follow more than 1 player. Thanks for the corrections tho
  3. This is what I'm trying to do actually. Hope you understand and help -- partial name function start by TAPL function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end -- partial name function end by TAPL g_Local = getLocalPlayer() function followTarget(g_Local, cmd, target) tPlayer = getPlayerFromNamePart(target) if n
  4. Can i use isElementAttached with createBlipAttachedTo? Let's say I want to make make a blip on a player by typing /blip player. if it already has a blip, it will destroy it. will isElementAttached work here? if not, how can i detect if a blip attached to someone?
  5. Chrimam

    ejector seat

    There is no error in debugscript. It doesn't give parachute, it doesn't take me to the pZ + 10. and i think it doesn't detach the seat either because i can't get in my car again.
  6. Chrimam

    ejector seat

    Nope it's not working.
  7. Chrimam

    ejector seat

    Hi. This is my script and what i am trying to do is, when you type /e in a vehicle, it will eject you through air and will make you land safely via a parachute. but i think i need to use setTimer thing because everything happens so fast that i can't even move through air and as soon as my seat is created, it is destroyed. hope you understand and help. function carEject(source) ocVeh = getPedOccupiedVehicle(source) if (ocVeh) then vehSeatNo = getPedOccupiedVehicleSeat(source) if vehSeatNo == 0 then removePedFromVehicle(source,
  8. I saw it in the resources. It's command appears to be /startmusic but when i type that, it says "stream not loaded yet".
  9. Thanks Castro it worked Edit: TAPL your script's working too.
  10. That's why i put a timer there. It spawns me immediately after i die. I can't understand if died. I want to be spawned after 1 second or so.
  11. It keeps saying bad argument @ spawnPlayer I tried function getCoords(source) but it says bad argument @getElementPosition expected element at argument 1, got number '0' (Yes. I also tried spawnCoords(source, wastedX, wastedY, wastedZ, wastedSkin) function getCoords() wastedX, wastedY, wastedZ = getElementPosition(source) wastedSkin = getElementModel(source) setTimer(spawnCoords, 1000, 1) end addEventHandler ( "onPlayerWasted", getRootElement(), getCoords ) function spawnCoords(wastedX, wastedY, wastedZ, wastedSkin) spawnPlayer(source, w
  12. Thank you guys it worked P.S: I know it's client side. I don't want anybody to see my marker it will interrupt them. My project is a little bit different
  13. Uh it attaches marker to the weapon but i got a problem. whenever i look to an object (vehicles, peds or things added by scripts/maps), it creates a red marker on it (no it doesn't attach). and i don't want my marker to appear everytime i get desert eagle, i want it to appear when i aim. Hope you got the point (the red marker on my leg is the marker attached to the weapon)
  14. I don't get any errors but "badArgument @ destroyObject" which works fine for me. But anyways, I can't attach my marker to weapon (i mean set the marker's position everytime frame changes) function powerTeleport(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if weapon == 24 then playerX, playerY, playerZ = getElementPosition(getLocalPlayer()) rotX, rotY, rotZ = getElementRotation(getLocalPlayer()) teleportObject = createObject(1337, playerX, playerY, playerZ) setElementCollisionsEnabled(teleportObject, false)
  15. I don't want the marker to be attached to target. I want to attach the target in front of the weapon's muzzle position. and i think it's impossible for now.
  • Create New...