Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. Improved code: teamRed = createTeam ( "Red", 255, 0, 0 ) teamBlue = createTeam ( "Blue", 0, 0, 255 ) function balanceTeams ( ) local RedCount = countPlayersInTeam ( teamBlue ) local BlueCount = countPlayersInTeam ( teamRed ) if RedCount ~= BlueCount then if RedCount > BlueCount then setPlayerTeam ( source , teamBlue ) elseif RedCount < BlueCount then setPlayerTeam ( source , teamRed ) end outputChatBox ( "You've been moved to the "..getTeamName ( getPlayerTeam ( source ) ):lower ( ).." team!", source ) end end addEventHandler ( "onPlayerJoin", getRootElement ( ), balanceTeams )
  2. I must repeat. CAN ANYONE HELP ME IN THIS FUNCTION SYNTAX, please? "text" is defined. "sw, sh" = guiGetScreenSize. text:Animation.presets.dxTextMove ( sw*0.9, sh*0.7, 500 ) I cannot understand the code of that function, that's why I ask for help D:
  3. It's txt = dxText:create("Area:\n"..playerZoneName1..", "..playerZoneName, 0.7805, 0.2266, true) txt:scale(1.20) txt:font("arial")
  4. If you are lucky enough (because we delete them), you can get an example at Community, just check all the way above, there is a link.
  5. Who cares. Anyway stats system doesn't work as far as I know.
  6. 12p

    [SERVER] Weird name

    Don't ask me. IDK anything lol.
  7. Everything in MTA is done by resources. Maps, gamemodes, custom objects, custom textures, GUI Windows, Map Editor, etc... If you want to make anything for your server/map/whatever (like custom obj), you need to create a resource for that. OR add a script to your actual resource (in the case of a race map)
  8. Will we be paid for our job?
  9. There is absolutely no need to make a video for showing how to make a server. There is OFFICIAL WIKI: https://wiki.multitheftauto.com/wiki/Server_Manual
  10. Using Lua you can make those scripts. Check these functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  11. 12p

    MTA on Ubuntu?

    EDIT: http://appdb.winehq.org/objectManager.p ... &iId=24272 Hell Yea.
  12. This topic became old, like others, so we are no longer "fighting", as you say. And you fail at posting (you double posted)
  13. I didn't read YOUR suggestion.
  14. You said something different on your post, specifically about this one. That's why I said what I said. But okay.
  15. 12p

    MTA on Ubuntu?

    I need to know this. I'm seriously planning to change from Windows to Ubuntu (I know I can have both, but my drive space is very limited), so it would be great if you guys could tell me if it's possible to play MTA on Ubuntu or any Linux distribution (e.g. using "Wine + PlayOnLinux" for Ubuntu).
  16. "They" are only you? Or there is more people involved in this?
  17. moveObject setElementRotation setTimer addEventHandler ("onClientRender", "onClientPreRender", "onClientHUDRender") setElementData createExplosion processLineOfSight With all that, you can create a rocket without problems and in very few minutes.
  18. You can simulate it creating an object with the projectile's model.
  19. Um, no it's okay don't waste everyones time What do you mean?
  20. 12p

    SIPL!

    Speak In Programming Languages! function saySomething ( ) outputChatBox ( "Hi, this is a new idea I've got. Speak in Lua ;D" ) end for i = 0, math.huge do saySomething ( ) end
  21. Yea, it sounds like a lie
  22. Maybe image-based background will give a better looking design
  23. Probably I'll get bored and will make something.
  24. I know this is epic bump, but I need to ask to anyone who's still using this library: how to use any animation? I tried this code but seems like I'm wrong. Animation.presets.dxTextMove ( text, sw*0.9, sh*0.7, 500 ) text is a text object, it works yeah, but that dxTextMove stress me. sw and sh represents guiGetScreenSize, and work too, of course.
×
×
  • Create New...