Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. "insignia" es el nombre del recurso donde estan los archivos "poli.png", "poli2.png", etc? Postea la modificacion a la scoreboard.
  2. Castillo

    table.insert

    table.insert ( table, { "132", 3, 2, 1 } )
  3. Castillo

    Help

    function giveMoney ( thePlayer ) local money = getPlayerMoney ( thePlayer ) if ( money < 5000 ) then givePlayerMoney ( thePlayer, 1000 ) else outputChatBox ( "You already have enough money , fool", thePlayer, 250, 250, 0 ) end end addCommandHandler ( "money", giveMoney )
  4. local tele = createMarker ( -473, -512.7001953125, 24.5, 'cylinder', 2, 0, 89, 97, 255 ) function Teleport ( player, matchingDimension ) if ( getElementType ( player ) == "player" ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "TLAT" ) ) then setElementPosition ( player, 3239.3999023438, 253.19999694824, 19 ) end end end addEventHandler ( "onMarkerHit", tele, Teleport ) Proba eso.
  5. Castillo

    Help

    function giveMoney ( thePlayer ) local number = math.random ( 1000, 5000 ) local money = getPlayerMoney ( thePlayer ) if ( money == number ) then givePlayerMoney ( thePlayer, 1000 ) else outputChatBox ( "You already have enough money , fool", thePlayer, 250, 250, 0 ) end end addCommandHandler ( "money", giveMoney ) By the way, this script will check if your money is EXACTLY the same amount as math.random returned.
  6. https://wiki.multitheftauto.com/wiki/ConvertNumber
  7. Yes, you can set the ped control states to make him drive, but you'll need some sort of path system.
  8. To make it shorter you can use: guiSetVisible ( rulesWindow, not guiGetVisible ( rulesWindow ) )
  9. Any error in the debugscript?
  10. Eso es porque estas enviando el evento de empezar el trabajo, simplemente oculta el GUI y el cursor.
  11. En ninguna parte estas abriendo la GUI.
  12. You put "onClientGuiClick" but is "onClientGUIClick".
  13. En que parte exactamente? no explicaste nada...
  14. getTime returns the game time, and it doesn't return a table like getRealTime. The result is: local hour, minute = getTime ( )
  15. Castillo

    Radar blip

    Small typo at isRadarAreaFlashing, you put "radar" but should of been "radararea".
  16. Castillo

    dbPoll

    Any errors in the debugscript?
  17. This code is wrong ... txd engineLoadTXD ( string txd_file [, bool filteringEnabled = true ] ) bool engineReplaceModel ( dff theModel, int modelID [, bool alphaTransparency = false ] ) Well, it was your code actually, I just changed the variable names .
×
×
  • Create New...