Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You need to use onClientRender to draw it. addEventHandler ( "onClientRender", root, function ( ) local x1,y1,z1 = getElementPosition ( marker ) local x2,y2,z2 = getElementPosition ( marker1 ) local x3,y3,z3 = getElementPosition ( marker2 ) local screenWidth, screenHeight = guiGetScreenSize ( ) local x1_, y1_, dis = getScreenFromWorldPosition( x1, y1, z1 ) local x2_, y2_, dis = getScreenFromWorldPosition( x2, y2, z2 ) local x3_, y3_, dis = getScreenFromWorldPosition( x3, y3, z3 ) dxDrawText("police job", x1_ + 2, y1_ + 2,screenWidth,screenHeight, tocolor ( 0, 0, 0, 255 ), 1, "pricedown" ) dxDrawText("police job", x2_ + 2, y2_ + 2,screenWidth,screenHeight, tocolor ( 0, 0, 0, 255 ), 1, "pricedown" ) dxDrawText("police job", x3_ + 2, y3_ + 2,screenWidth,screenHeight, tocolor ( 0, 0, 0, 255 ), 1, "pricedown" ) end )
  2. http://www.mediafire.com/?d80hb8e4goz5cp8
  3. What has donations to do with this?
  4. Castillo

    no da error

    En ese mapa no hay ningun objeto con el ID: "object (airportgate) (1)".
  5. Castillo

    no da error

    Postea el .map tambien, asi lo pruebo yo.
  6. Castillo

    no da error

    getElementByID es lo mismo. @ElMota: Estas seguro de que no dice nada? mira que ese script es client side, asi que lo dira solo en el debugscript del juego, no en la consola del servidor.
  7. dbExec ( connection, "UPDATE `accounts` SET `admin` = '2' WHERE `accountName` = ".. name .."" )
  8. dbExec ( connection, "UPDATE `accounts` SET `admin` = '2' WHERE `accountName` = 'Lloyd Logan" )
  9. executeSQLQuery is for SQLite only, you must use dbExec instead.
  10. Maybe you already know this, but "k" and "v" can be anything, doesn't has to be these two letters.
  11. Well, next time you should ask what is width and height, not how to calculate it.
  12. ColShape = createColRectangle (-1947.08, -1796.138, 100, 100 )
  13. I guess you don't want to do what I said, so, you just set the height and width to what you want, until it fits what you need.
  14. You can't do that on MTA.
  15. Well, if you want to make a script which calculates the width and height from two pair of positions ( x and y ), you can try that math calculation.
  16. You could try with this calculation: width, height = ( x2 - x1 ), ( y2 - y1 )
  17. Check if 'invitedOne' is a valid player element before set element data, also, the error on warnText could be that 'inviterGroup' is returning 'nil'.
  18. Castillo

    move ped

    addEventHandler ( "onPlayerDamage", root, function ( attacker, weapon, bodypart, loss ) local x, y, z = getElementVelocity ( source ) if ( getElementData ( attacker, "zombie" ) ) then setElementVelocity ( source, x + 2, y + 2, z + 8 ) end end )
  19. function paynspray(hitElement) setTimer ( fixVehicle, 2000, 1, hitElement ) end addEventHandler("onMarkerHit", dutymarker, paynspray)
  20. Castillo

    move ped

    You can use: setElementVelocity
×
×
  • Create New...