Jump to content

Whit3

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Whit3

  1. Whit3

    Little Help

    okay, but i wanna get the name and draw with dxdrawtext and for every draw i wanna get their status
  2. Whit3

    Little Help

    I wanna draw members of both teams Like Team 1 Player1 - Alive/death Player2 - Alive/death Player3 - Alive/death Team 2 Player1- Alive/death Player2- Alive/death Player3- Alive/death
  3. Whit3

    Little Help

    http://i.imgur.com/tQJgs7e.jpg - I must include in their respective team, members who belong -I tried to do it this way - Some one can help me? Thanks ..... for i,player in ipairs(getElementsByType("player")) do i = i+1 namex = getPlayerName(player) dxDrawText(namex, 8.71*x, 286*scalaY+i*0.2, 1087*scalaX, 317*scalaY, tocolor(255, 255, 255, 255), 1.10*scalaX, "default-bold", "left", "top", false, false, true, true, false) if (i > 5 ) then --it's the 2th team dxDrawText(namex, 8.71*x, 427*scalaY+i*0.2, 1087*scalaX, 317*scalaY, tocolor(255, 255, 255, 255), 1.10*scalaX, "default-bold", "left", "top", false, false, true, true, false) end end
  4. Whit3

    problem

    What's Wrong? Error : GetElementModel got boolean Server Side local activated = 0 function disableFireForH( theVehicle, seat ) local id = getElementModel ( theVehicle ) if activated == 0 then if id == 425 then toggleControl (id, "vehicle_fire", true) end end end setTimer(disableFireForH , 100,0) function disablefire() activated = 1 outputChatBox("Hunter Fire Disabled") end addCommandHandler("df",disablefire) function activatefire() activated = 0 outputChatBox("Hunter Fire Activated") end addCommandHandler("af",activatefire)
  5. Grazie così la prossima volta che ricapita capisco perchè questa cosa non mi era mai capitata
  6. Whit3

    Help derby

    1)triggerClientEvent ( "w3", getRootElement()) -- if you don't KNOw, W3 mean my nick Whit3 ----> W3 2)I know that I didn't compiled it, I forgot. 3) this is the edit of destructionderby ( I know that i didn't created this script ) 4) how he took this server-side?
  7. Whit3

    partial circle

    That's all.. but you mean screenshots?
  8. l'ho già fatto ma niente.. ho preso l'absolute (diciamo con i numeri che erano tipo 600 e 800 una cosa del genere) vabbè sta di fatto che eseguito questa operazione : - la mia risoluzione è 1280x1024 quindi 1280/600 = e il numero del risultato moltiplicato per la rx 1024/600 = e il numero del risultato moltiplicato per la cx
  9. Whit3

    partial circle

    This script work just in 1 resolution ( 1280x1024 ) in the other one the circle are moved or larger What's the problem? local rx,cx = guiGetScreenSize() local posx = 0.129 * rx local posy = 0.837 * cx local size = 0.116 * cx function healthstatus ( ) local target = getCameraTarget() if not target then return end if not (getElementType(target) == "vehicle") then return end local car = target if ( isPedInVehicle ( localPlayer ) == false ) then return false end local health = getElementHealth ( car ) local name = getVehicleName ( car ) local currenthealth = math.max(health - 250, 0)/750 dxDrawPartialCircle(posx, posy, size,2,0,currenthealth*360) end addEventHandler ( "onClientRender", root, healthstatus )
  10. no è che in pratica il "cerchio" che dovrebbe indicare la vita nel radar, nel mio caso con la mia risoluzione funziona tutto ..(poi non capisco che cosa cambia se metto --> rx * 0.129 oppure --> 0.129 * rx ; p.s puoi parlarmi in terminologia assurda ahahah capisco non c'è bisogno che mi dici che * indica il x ahaah tranquillo) Anyway come già detto nella mia risoluzione funziona alla grande nelle altre, il cerchio o và fuori lo schermo o non si vede correttamente anche se inverto come hai detto.
  11. local rx, cx = guiGetScreenSize () local posx = rx * 0.129 local posy = cx * 0.837 local size = cx * 0.116 dxDrawPartialCircle(posx, posy, size,2,0,360) dici in questo modo?
  12. già fatto hunter è questo il punto ti faccio capire.. local rx, ry = guiGetScreenSize ( ) dxDrawPartialCircle(rx/7.75, ry/1.195, 116,2,0,360) il punto è che nella mia risoluzione si vede come dovrei vederlo, ma in altre, non si vede correttamente cioè il cerchio è spostato tutto qui
  13. Ciao rega, volevo sapere perchè quando uso il dxDrawPartialCircle cambia da risoluzione a risoluzione, per esempio io uso 1280x1024 altri usano 1900 etc.. anche se uso il guiGetScreenSize mi si sposta il "cerchio" posso sapere per quale motivo? Grazie
  14. Whit3

    AIuto

    Anche se la discussione è vecchia, molto vecchia, non ho saputo resistere .. setTimer(function() --Setta Al Team Chiamato W3 colori random definiti in R,G,B r = math.random(0,255) g = math.random(0,255) b = math.random(0,255) teamcane = getTeamFromName("W3") setTeamColor(teamcane,r,g,b) end,2000,0)--Ogni 2 Secondi Cambia il colore
  15. Whit3

    idiot question

    Ah yes, solved thanks.
  16. Whit3

    Help derby

    is the same for me, it's always mine.
  17. Whit3

    idiot question

    no, i want use 2 type of dxDrawPartialCircle with different color dxDrawPartialCircle(rx/7.75, ry/1.1949, 108,tocolor(0, 11, 255, 255), 3,nil,3.60)--1 ) dxDrawPartialCircle(rx/7.75, ry/1.1949, 118, tocolor(255, 0, 0, 255),3,nil,3.60)--2 ) but it don't work
  18. Whit3

    idiot question

    That's an idiot question. Problem when i use this code : dxDrawPartialCircle(rx/7.75, ry/1.1949, 108,tocolor(0, 11, 255, 255), 3,nil,3.60) I would like to use my color .. function dxDrawPartialCircle(posX, posY, radius, width, startAngle, endAngle, angleAmount, color, postGUI) local function clamp(val, lower, upper) if (lower > upper) then lower, upper = upper, lower end return math.max(lower, math.min(upper, val)) end radius = radius or 50 width = width or 5 startAngle = clamp(startAngle or 0, 0, 360) endAngle = clamp(endAngle or 360, 0, 360) angleAmount = angleAmount or 1 color = color or tocolor(0, 11, 255, 255) postGUI = postGUI or false if (endAngle < startAngle) then local temp = endAngle endaAngle = startAngle startAngle = temp end for i=startAngle,endAngle,angleAmount do local _i = i*(math.pi/180) dxDrawLine(math.cos(_i)*(radius-width)+posX, math.sin(_i)*(radius-width)+posY, math.cos(_i)*(radius+width)+posX, math.sin(_i)*(radius+width)+posY, color, width, postGUI) end return true end
  19. Whit3

    Help derby

    LoL! - This is my Server side script....
  20. Whit3

    redo

    no, it don't set the next map
×
×
  • Create New...