Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. manve1

    Help - Unpack

    I tried using unpack function for createObject and when i use the unpack function for marker it work, but it doesn't for createObject, so i need help to know how to make it: local lol = { { 2289, 2494.0295410156, -1674.1334228516, 12.335947036743 } } local s = createObject(unpack(lol))
  2. post the script, u might miss-written something, or you are missing something
  3. yes. there are scripts for the turn signals
  4. Create near it a col shape, when he hits it, it gets his team and then moves if he is in it.
  5. Didn't work. Still it doesn't update the GridList
  6. Removed it, but still ain't working
  7. no errors, but I done same thing for login on numbers, and it worked, just for some reason not on this
  8. I have a problem of trying to make an achievement when player dies he unlocks it, but i just don't get how to make it work properly. Server-side: function achLog( ) local logged1 = getPlayerAccount(source) if (logged1) then setAccountData(logged1, 'achDamage', 2) end end addEventHandler('onPlayerLogout', getRootElement(), achLog) addEventHandler('onPlayerWasted', getRootElement(), function() local logged1 = getPlayerAccount(source) local logged = getAccountData(logged1, 'achDamage') if (logged == tonumber(0)) then triggerClientEvent('needDamage', getRootElement()) setAccountData(logged1, 'achDamage', 2) outputChatBox('#FF0000[Achievement]: #FFFFFF'.. getPlayerName( source ) ..' just unlocked "Death is here." achievement.', root, 255, 255, 255, true) elseif (logged == 2) then triggerClientEvent('logDamage', getRootElement()) end end ) Client-side: addEvent('needDamage', true) addEventHandler('needDamage', getRootElement(), function() local achDamage = guiCreateStaticImage( 0.4, 0.2, 0.6, 0.2, 'pictures/ach.png', true ) local labelDamage = guiCreateLabel( 0.4, 0.6, 0.6, 0.15, 'Death is here ( Die )', true, achDamage ) setTimer( function() if isElement(achDamage) and isElement(labelDamage) then destroyElement(achDamage) destroyElement(labelDamage) end end, 2000, 1 ) end ) addEvent('logDamage', true) addEventHandler('logDamage', getRootElement(), function() guiGridListSetItemText( gridAch, row2, column1, 'Death is here Unlocked', false, false ) end )
  9. read the link ... cuz the script is not for sale or made. After all its taking ideas from other servers so i think it would be kind of illegal script.
  10. no, no need it anymore, i used it in all of them, still the same thing, i try stuff before i ask help, but i leave it as it is
  11. Well, never mind, I just leave it as it is, although i was trying to: Make a marker and check how far player is away from him, in meters and without a decimal (( original is like this EMAPLE: 345.247166245 ))
  12. Wouldn't setElementPosition do the same thing?
  13. Make your script, post it here and we can help you fix it. We are here not to make them
  14. Thanx, but I seen in one server having the distance between 2 points, and only in one piece, without decimal point, i just dont want the decimal point, That is what now i actually need
  15. manve1

    Helpmanager

    EDIT: Sorry I was wrong, it can be any name, just in side of it you need: --write something then you make a script and put the help inside of the script or another script meta.xml and folder
  16. If i'm getting you correctly: Most probably you could make traffic limit, where they can go or where they can and you should make that if there is distance from the player and a moving car you could use getDistanceBetween3D (( or something like this ))
  17. The mathematical way will take me ages to make, I use random markers for this. P.S. Hi NooP
  18. manve1

    Helpmanager

    What you mean? like help tabs? then u must name them as "Help.xml" or "Help.txt" plus make a script for it. and in the "Help.txt" or "Help.xml" u must add lines At the Top: At the Bottom:
  19. Btw, i don't take the credit for this script, i only copied from one resource of mta community (( can't find the web link now )), but happy to hear that it works p.s. If it is defined, i don't care
  20. just try the code i posted, and tell me if it worked
  21. manve1

    playsound

    this is an example ((not sure if works)) : if ( not sound ) then local sound = playSound(music) end
  22. In ur script its not defined, look at edit tho
  23. how can i get rid of y axis on: local x, y, z = getElementPosition( pMarker ) local x2, y2, z2 = getElementPosition( localPlayer ) getDistanceBetweenPoints2D( math.ceil(x), y, math.ceil(x2), y2 ) ?
  24. thats because real.minute is not defined try: function syncTime() local realTime = getRealTime() local hour = realTime.hour local minute = realTime.minute setMinuteDuration ( 60000 ) setTime( hour , minute ) end setTimer ( syncTime, 500, 1 ) setTimer ( syncTime, 3000000, 0 )
×
×
  • Create New...