Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. With scripting knowledge. MM uses DX drawing functions to draw the spawn menu (if i'm right). https://wiki.multitheftauto.com/wiki/Cli ... _functions
  2. Well, I've never used any decompiler (never had to use one), but a friend sent me one of my scripts (I sent it to him to test) and when he sent it back, it was all fu**** up. P.S: You shouldn't take scripts from servers without permission, isn't cool.
  3. You can't do the progress bar colored, but about the text in it, yeah, it is possible, you can create a GUI label into it.
  4. I have The Kid's minecraft mode in my computer, never had the time to continue his work, but someday i'll . But as Aibo said, the MTA/GTA limit will fuck it up.
  5. local mySpawnTable = { {-1285, -34, 15}, {1809, -2477, 14}, } addEventHandler("onPlayerJoin",root, function () local ran = math.random(#mySpawnTable) local x, y, z = mySpawnTable[ran][1], mySpawnTable[ran][2], mySpawnTable[ran][3] spawnPlayer(source, x, y, z) end) This will spawn the player in a random between Los Santos airport and San Fierro airport when they join.
  6. That's because you are using getElementData in the value "time" but the value in the server side is "time_v". local sx, sy = guiGetScreenSize() local pList = guiCreateGridList( 300, 300, sx - 600, sy - 600, false ) local pcol1 = guiGridListAddColumn( pList, "Name", 0.3 ) local pcol2 = guiGridListAddColumn( pList, "Gang", 0.3 ) local pcol3 = guiGridListAddColumn( pList, "Spielzeit", 0.175 ) local pcol4 = guiGridListAddColumn( pList, "Ping", 0.175 ) guiWindowSetMovable( pList, false ) guiWindowSetSizable( pList, false ) guiSetVisible( pList, false ) function PlayerList() if ( guiGetVisible( pList ) == false ) then guiGridListClear(pList) guiSetVisible( pList, true ) for id, player in ipairs( getElementsByType( "player" ) ) do triggerServerEvent( "update", player ) prow1 = guiGridListAddRow( pList ) guiGridListSetItemText( pList, prow1, pcol1, getPlayerName( player ), false, false ) guiGridListSetItemText( pList, prow1, pcol2, getTeamName( getPlayerTeam( player ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol3, tostring( getElementData( player, "time_v" ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol4, getPlayerPing( player ), false, false ) end else guiSetVisible( pList, false ) end end bindKey( "tab", "both", PlayerList )
  7. Gridlist texts must be a string, it can't be a number. local sx, sy = guiGetScreenSize() local pList = guiCreateGridList( 300, 300, sx - 600, sy - 600, false ) local pcol1 = guiGridListAddColumn( pList, "Name", 0.3 ) local pcol2 = guiGridListAddColumn( pList, "Gang", 0.3 ) local pcol3 = guiGridListAddColumn( pList, "Spielzeit", 0.175 ) local pcol4 = guiGridListAddColumn( pList, "Ping", 0.175 ) guiWindowSetMovable( pList, false ) guiWindowSetSizable( pList, false ) guiSetVisible( pList, false ) function PlayerList() if ( guiGetVisible( pList ) == false ) then guiGridListClear(pList) guiSetVisible( pList, true ) for id, player in ipairs( getElementsByType( "player" ) ) do triggerServerEvent( "update", player ) prow1 = guiGridListAddRow( pList ) guiGridListSetItemText( pList, prow1, pcol1, getPlayerName( player ), false, false ) guiGridListSetItemText( pList, prow1, pcol2, getTeamName( getPlayerTeam( player ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol3, tostring( getElementData( player, "time" ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol4, getPlayerPing( player ), false, false ) end else guiSetVisible( pList, false ) end end bindKey( "tab", "both", PlayerList ) Try that.
  8. You are kidding me right? I know what a "number" is , but I don't understand why you used it in that script, was a mistake?
  9. Hmmmm, I know there are some decompilers around, but it can't decompile it fully, it'll mess with the variable(s) and function(s) name(s).
  10. local x, y = guiGetScreenSize() local pList = guiCreateGridList( x / 4, y / 4, 400, 400, false ) local pcol1 = guiGridListAddColumn( pList, "Name", 0.2 ) local pcol2 = guiGridListAddColumn( pList, "Gang", 0.2 ) local pcol3 = guiGridListAddColumn( pList, "Ping", 0.2 ) guiWindowSetMovable( pList, false ) guiWindowSetSizable( pList, false ) guiSetVisible( pList, false ) function PlayerList() if ( guiGetVisible( pList ) == false ) then guiGridListClear(pList) guiSetVisible( pList, true ) for id, player in ipairs( getElementsByType( "player" ) ) do prow1 = guiGridListAddRow( pList ) guiGridListSetItemText( pList, prow1, pcol1, getPlayerName( player ), false, false ) guiGridListSetItemText( pList, prow1, pcol2, getTeamName( getPlayerTeam( player ) ), false, false ) guiGridListSetItemText( pList, prow1, pcol3, getPlayerPing( player ), false, false ) end else guiSetVisible( pList, false ) end end bindKey( "tab", "both", PlayerList ) It should clear the gridlist when you open it, then add the rows.
  11. I don't understand what are you doing here... you are checking if he typed /adminduty, but what is the == "number"?
  12. This is not a requesting forum, you must learn on how to do it by yourself or pay someone to do it.
  13. "Phone things"? what do you mean? scripting this would be the same as scripting a command script but harder.
  14. Yeah, I tried it out, it's funny .
  15. Castillo

    Report MTAQA Faker

    Lol, that's pathetic, I would have banned him without even think about it.
  16. Castillo

    Problem.

    That's strange, works fine here, and in another servers.
  17. You should compile your scripts if you won't someone to look at them, I would recommend you to use this compiler: viewtopic.php?f=108&t=33905 I haven't got any problem with it so far.
  18. Castillo

    Problem.

    Well, the admin panel by Lil toady does that and much more, I don't understand why don't you use it... P.S: I also created my own admin panel, you can get it here: https://community.multitheftauto.com/index.php?p= ... ils&id=814 Also, check your resource permissions, in the acl.xml file, kickPlayer, addBan and many other functions requires admin rights.
  19. Nop, this resource doesn't has that feature.
  20. It's a freeroam bug, you must fix it.
  21. Fail? o_O. Btw, I store my achievements in a SQLITE table.
  22. CowTurbo, I guess you are talking about valhalla's phone system (I know you have their scripts also ), and yeah, wouldn't be nice to sell it . P.S: DanChris, I would recommend you to learn how to script. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  23. Castillo

    Problems

    I would say you need to use callRemote (if it's possible to) and PHP knowledge.
  24. Well, in my system I store the data and then I check which are unlocked and which aren't.
×
×
  • Create New...