Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. If you use the brain and read Lua tutorials, you'd know it.
  2. Fonts are in 'font' folder but you're trying to use font with path 'draw.ttf' and not 'fonts/draw.ttf'.
  3. Are font files in the right path?
  4. Probably they have a website and they need to query data from the server's database. If people don't do that nor they're going to make use of the server's database, I guess using built-in functions will be better and faster.
  5. No requests here, we're also tired of "shitty" RPs with illegal/not-made-by-owner gamemodes so please learn and make something new.
  6. Anderl

    plzhelp

    Don't expect us to make the whole script for you. Btw, it's not for doing some basic shit that you'll be a good scripter.
  7. Anderl

    Point System

    Ok, then use these functions: addScoreboardColumn --note that this is an exported function from scoreboard setElementData getElementData setAccountData getAccountData getPlayerAccount won't be needed here since onPlayerLogin event already sends the account as an argument. And use these events: onPlayerWasted onPlayerLogout onPlayerLogin I think I didn't forget any.
  8. Is that code server-side in meta.xml? Show meta.xml. Check for errors in debug also, I can't seem to find any. Maybe it's me, I'm fucked up today.
  9. There is a "visible to" parameter in createBlip.
  10. Anderl

    Point System

    It's not possible and does not have to be possible, if he is using MTA's default account system. When player joins, he is a guest, not logged in. How will you get his account data (points)? So I guess TAPL is right, onPlayerLogin has to be used. The OP didn't say he's using default account system but did say he wants to load the points when the player joins, so I just sent him the right event for that.
  11. Anderl

    Point System

    Oh my god. How do you think he'll load points when player join then? you kidding me? That event is called when a player logs in, not join. Login and join are things very different.
  12. Nop, we talked over Messenger. It's something about cursor position. I didn't get it yet. @Tremidinha, please explain what's your problem better for us.
  13. Anderl

    Point System

    He wants when player rejoin server, not quit. rejoin means (quit and join) Simply all you need is save the points in the account when the player quit, and load it from the account when the player login. There no need for onPlayerJoin unless you going make a system to save the player serial and its points in (xml, sql, mysql) then it going be a waste of time and effort. Oh my god. How do you think he'll load points when player join then?
  14. Anderl

    Point System

    He wants when player rejoin server, not quit.
  15. Would you mind talking english properly? I didn't get it.
  16. It's exactly the same as dxDrawRectangle and dxDrawImage.
  17. Client-side code: addEventHandler( "onClientVehicleStartEnter", root, function( player ) if ( player == localPlayer ) then setSoundVolume( playSound( "sound/venter.mp3" ), 0.5 ); end end ) meta.xml: <meta> <info author = "Dzsipszi" type = "script" description = "Car-Sounds"/> <script src = "enter.lua" type = "client"/> <file src = "enter.mp3"/> </meta>
  18. onPlayerSpawn's first parameter is not the player argument. Source is a predefined variable.
  19. I'd too. Bad that this laptop can't handle it without lag.
  20. Anderl

    GUI

    addEventHandler( "onClientMarkerHit", Strip_Marker, function( player ) if ( player == localPlayer ) then guiSetVisible( StripWindow, not guiGetVisible( StripWindow ) ); showCursor( guiGetVisible( StripWindow ) ); guiSetInputEnabled( guiGetVisible( StripWindow ) ); end end )
×
×
  • Create New...