Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I'm still having the same problem, this is what it outputs to debug when it should be destroyed. WARNING: Bad 'element' pointer @ 'triggerEvent'(2) Edit: Woah, i inserted the timer into a command and now it get's destroyed o,o, really weird. Edit2: Now i'm trying to use it onResourceStart and it won't work Edit3: I've got it working, sounds like the problem was with the exporting functions, since i put all the files into my resource and works fine. Thanks for help everyone.
  2. Look, what i gave you worked with normal getPlayerFromName and player elements, but i'am asking about how it works your function findPlayer, but i don't have idea why won't you post it here.
  3. could you show me your findPlayer function?
  4. That's the same i have... it still the same problem of course.
  5. I think this can help you. https://forum.multitheftauto.com/viewtop ... 64#p342602
  6. Hello, i have a problem using this resource "missiontimer", well, i made a timer, that worked fine, but then i want to change/destroy this timer and i cannot. missiontime = exports.missiontimer:createMissionTimer (times*6000,true,"%m:%s",0.5,20,true,"default-bold",1,255,255,255) exports.missiontimer:setMissionTimerTime(missiontime,times*6000) Could someone explain me why this won't work? Thanks in advance.
  7. Citizen, you still using onPlayerDamage...
  8. Go to: c:\Program Files\MTA San Andreas\mods\deathmatch\resources\ There is every client side script downloaded from the server.
  9. make a table and then load from it? btw, why do you clean the grid list every time?
  10. Haha, that's a cool idea, i've never seen such mod into MTA, if you make it just like the S.T.A.L.K.E.R game it would be really cool. Good luck with it
  11. What...?
  12. local theMarker = createMarker ( 0, 0, 3, "cylinder", 5, 255, 255, 255, 255 ) function attach ( hitElement ) if (getElementType(hitElement) == "vehicle" ) then local Pvehicle = getPedOccupiedVehicle ( getVehicleOccupant(hitElement) ) attachElements ( Pvehicle, theMarker ) elseif (getElementType(hitElement) == "player" ) then outputChatBox ( "Only vehicles can be attached here" ) end end addEventHandler ( "onMarkerHit", theMarker, attach ) function detach () local attachedElements = getAttachedElements ( source ) detachElements ( Pvehicle, source ) end addCommandHandler ( "detach", detach ) Not tested.
  13. Hi volk, could you please explain what do you want to do?
  14. Maybe, Valhalla gaming? Server IP: 87.238.175.150 Server Port: 22003
  15. CowTurbo, the event onPlayerDamage can't be canceled, wiki note: It should also be noted that canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead.
  16. Cual es el problema, no podemos ayudarte si no aclaras bien.
  17. Another stolen resource: https://community.multitheftauto.com/index.php?p= ... ls&id=2003
  18. Hmm, try with this: function spawnWasted(player) local skin = getElementModel ( player ) repeat until spawnPlayer ( player, 1606.76, 1816.60, 10.82, 180, skin ) fadeCamera(player, true) setCameraTarget(player, player) takePlayerMoney ( player, 150 ) local i = 0 for i=0,13 do local theWeapon = getPedWeapon(player, i) local weaponAmmo = getPedTotalAmmo(player, i) setTimer (giveWeapon, 1000, 1, player, theWeapon, weaponAmmo, true) i = i +1 end end addEventHandler("onPlayerWasted", root, function() setTimer(spawnWasted, 1800, 1, source) end )
  19. Could you post findPlayer function? function trol (thePlayer, commandName, ...) player = findPlayer(...) if not player then outputChatBox("* /wtf: player not found", thePlayer) elseif isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) outputChatBox( getPlayerName(thePlayer).. " trol " ..getPlayerName(player), getRootElement(), 255, 255, 0, true) end end addCommandHandler("wtf", trol)
  20. Yeah, that's the same problem i had when doing it.
  21. Castillo

    one question

    Qais, the point was to let him learn .
  22. Do you have any public scripts as profit of your knowlage?
  23. Actually, qais, i done that before giving him that code and didn't worked.
  24. setElementModel ( skin ) o,O, i think you forgot something there?
  25. Hi, i think that those stuff only can be done by scripting. and, what do you mean in the question #5?
×
×
  • Create New...