Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. Is there a host that would be cheap ( max 25pence a slot ) and would accept sms payments?
  2. manve1

    [HELP]turfing

    The script is mine, I could help you, but i am busy. If i have time, i might update it. I know he is just upgrading it, but as far as i know, MTA forums scripting section is to help with your own scripts, not someone else
  3. I know that will work, but i need it to be shortened as i am gonna use 'elseif'
  4. I tried making a script piece that would be shortened a little bit, but i can't figure out how to make it to work for a picture as it did work for a button; Everything is defined; -- local mark1 = guiCreateStaticImage( 0.52, 0.51, 0.035, 0.035, 'blip.png', true, map ) -- -- addEventHandler('onClientGUIClick', resourceRoot, function() if (source == mark1) then guiSetVisible( windowMap, false ) showCursor( false ) end end, false ) -- P.S. Don't write ask what Debug script 3 say's as it has no ERROR.
  5. manve1

    [HELP]turfing

    We are here to help with your scripts, not by someone else right?
  6. try without these lines: setElementVisibleTo(blip,getRootElement(),false) setElementVisibleTo(blip,source,true)
  7. I meant on the forum, don't do it in the script as it ain't gonna load the [lua] [/ lua] tags as it ain't counted as a script bit
  8. function ukryj () guiSetVisible(oknolicencja,false) showCursor(false) unbindKey("z","down",ukryj) setElementData(marker,"wolne",false) setElementData(getLocalPlayer(),"marker_prawko",false) end function pokaz2 (hitElement, matchingDimension) if (source == marker) and (hitElement) then for k,v in ipairs(getElementsByType("player")) do if getElementData(v,"zdaje_prawko") == false then bindKey("z","down",pokaz) setElementData(hitElement,"marker_prawko",true) elseif getElementData(v,"zdaje_prawko") == true then unbindKey("z","down",pokaz) callServerFunction("outputChatBox","***| Gracz "..getPlayerName(v).." teraz zdaje prawko! |***",hitElement,255,255,255) end end end end addEventHandler("onClientMarkerHit",marker,pokaz2) function pokaz () guiGridListSetItemText ( glicencja, row1, kol1, "Prawko kat.B", false, false ) guiGridListSetItemText ( glicencja, row1, kol2, "2000$", false, false ) guiSetVisible(oknolicencja,true) setElementData(gracz,"zdaje_prawko",true) showCursor(true) centerWindow(oknolicencja) bindKey("x","down",ukryj) outputChatBox("***| Aby zamknac okienko wcisnij 'x' |***",255,255,255) end try this
  9. post your script in [lua][/ lua] tags, and btw, don't post full script ((only few lines from the round about error)) and show us proper error code This is because i can't spot anything bad in it
  10. manve1

    Command

    script doesn't make any sense at all. as even table is wrong: Table should look like this: local commands = { {'hi'} = true, {'oh'} = true; }; The script didn't define 'cmd' appropriately, it defined it as a function command (( That's what i get mostly when i don't define it appropriately )) P.S. Not sure about the rest of script as i am tired
  11. If it requires admin rights then open: acl.xml, find group with name 'Admin' and type in: If not just place it in where Castro said and don't do anything .. just refresh server resources (( if the server is started )) or start up the server. NOTE: Rename the 'RESOURCE_NAME_HERE' to a resource name
  12. manve1

    Col script

    MTA doesn't take in .cst as i never seen that name of a file on MTA WIKI
  13. FancyProgress = {} FancyProgress.__index = FancyProgress function FancyProgress.create(minval, maxval, bgName, x, y, width, height, barName, barOffsetX, barOffsetY, barWidth, barHeight) local screenWidth, screenHeight = guiGetScreenSize() if screenWidth < 1280 and screenHeight < 1024 then x = resAdjust(x) y = resAdjust(y) width = resAdjust(width) height = resAdjust(height) barOffsetX = resAdjust(barOffsetX) barOffsetY = resAdjust(barOffsetY) barWidth = resAdjust(barWidth) barHeight = resAdjust(barHeight) end if x < 0 then x = screenWidth - width + x end if y < 0 then y = screenHeight - height + y end return setmetatable( { background = guiCreateStaticImage(x, y, width, height, bgName, false, nil), bar = guiCreateStaticImage(x + barOffsetX, y + barOffsetY, barWidth, barHeight, barName, false, nil), width = barWidth, height = barHeight, min = minval, max = maxval, range = maxval - minval, progress = maxval }, FancyProgress ) end function FancyProgress:setProgress(progress) if not progress then progress = 0 end if progress < self.min then progress = self.min elseif progress > self.max then progress = self.max end if progress ~= self.progress then guiSetSize(self.bar, math.floor((progress-self.min)*self.width/self.range), self.height, false) self.progress = progress end end function FancyProgress:show() guiSetVisible(self.background, true) guiSetVisible(self.bar, true) end function FancyProgress:hide() guiSetVisible(self.background, false) guiSetVisible(self.bar, false) end function FancyProgress:destroy() destroyElement(self.background) self.background = nil destroyElement(self.bar) self.bar = nil end p_HealthBar = FancyProgress.create( 0, 100, "hud.health.png", -1268.25, 736.35, 2, 60, "hud/p.png", 0.9, 8, 0.1, 15.4 ) function getTeamHealth(team) if team then HP = 0 for i, player in ipairs(getPlayersInTeam(team)) do HP = HP + getElementHealth(player) end return HP end end setTimer( getTeamHealth, 100, 0 ) setTimer( function( ) p_HealthBar:setProgress( getTeamHealth ) end, 100, 0 ) ERROR: line.39 @ attempt to compare function with a number Mind helping me out with this?
  14. Will this work for an client sided script on a timer?
  15. For instance there is a Team with few members in it. How can i get the image progress bar to change when someone loses/gains/leaves/joins ?
  16. How can i get a team's health, for example if one player joins and there is 17people online and then some leave and health bar changes?
  17. Thanx, it worked looks nice now
  18. Why can't i download the Auto-Completion by Buffalo? When i press Download it opens new window and say's "File Deleted"
  19. what are you trying to say? like mute a person?
  20. Thank you guys, helped
  21. Sorry to bother you, but i still don't get how to make it to expand when person loses/gain's health
  22. Is the 'FancyProgress.create' exported or something, because i looked into the script and i didn't get anything in there just the resolution.
  23. You don't get what i mean by IMAGE? not DX LINE?
×
×
  • Create New...