Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Well, why do you need to make that much queries? a single query should do.
  2. You are making a lot of queries just for the login? that's highly inefficient.
  3. I don't understand the function you posted, if you want to compare a data, then you must give something to compare it against.
  4. Connecting to the database everytime isn't good, just connect once and use the connection handler.
  5. You can use dbQuery + dbPoll to do this.
  6. https://wiki.multitheftauto.com/wiki/OnPlayerChangeNick Cancel that event.
  7. Make the question instead of asking if I can help you.
  8. https://community.multitheftauto.com/in ... ils&id=344
  9. You want the player names to appear in the F11 map?
  10. MTA SA is Open Source, if that's what you mean.
  11. Castillo

    FIXED

    Why use a loop to take the weapons? takeAllWeapons
  12. There's a problem with the ACL.xml file. Post the content, it may have a syntax error.
  13. Did you do all what the installation says?
  14. dxDrawText ( "...text...", posX, posY+400, width, height, tocolor(253, 0, 0, 255), 0.65, "bankgothic", "left", "top", false, false, true, false, false, rotation ) Proba eso.
  15. Shouldn't you add a restriction to the command?
  16. Oh well, I thought by voice it was refering to the microphone at the wiki page, I forgot about the ped voices .
  17. I didn't ask for that, I asked what game mode are you using, is it a modification of valhalla game mode?
  18. Have you tried using "onClientResourceStop"?
  19. Use setTime after you add the "onClientRender" event.
  20. Yes, but if you put it inside the onClientRender event, it'll be setting the time on every render.
  21. function HitMarker ( thePlayer ) if ( thePlayer == localPlayer and source == theMarker ) then addEventHandler ( "onClientRender" ,getRootElement(), dxDraw ) end end addEventHandler ( "onClientMarkerHit" ,getRootElement(), HitMarker ) function dxDraw ( ) if isElementWithinMarker ( localPlayer, theMarker ) then outputChatBox ( "keep inside the Marker and type /robtime to know what's the remaining time", 0, 250, 0 ) dxDrawText ( "ROBBERY IS PROGRESSING ( 50000$ )", 279, 143, 661, 201, tocolor(255, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, true, false, false ) end end I removed setTime because that function sets the game time, maybe you thought it did something else?
×
×
  • Create New...