Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. function start ( ) txd = engineLoadTXD ( "vehicle.txd" ) engineImportTXD ( txd, 0 ) end-- you forgot to end the function. addEventHandler ( "onClientResourceStart", resourceRoot, start ) -- You forgot to attach a event handler to the function.
  2. Castillo

    Skin

    As far as I know, you can't replace CJ skin, try with a different model. Also, you're using a wrong file location. outputChatBox ( "> replacing the Carl Johnson skin with the Stormtrooper skin" ) txd = engineLoadTXD ( "trooper/stormtrooper.txd" ) engineImportTXD ( txd, 0 ) dff = engineLoadDFF ( "trooper/stormtrooper.dff", 0 ) engineReplaceModel ( dff, 0 )
  3. local admins = {} local superModerators = {} function processAdminList() admins = {} superModerators = {} for index, player in ipairs">ipairs( getElementsByType ( "player" ) ) do if not isGuestAccount ( getPlayerAccount ( player ) ) then local accountName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Admin" ) ) then table.insert( admins, getPlayerName ( player ) ) elseif isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "SuperModerator" ) ) then table.insert( superModerators, getPlayerName ( player ) ) end end end outputChatBox("* Admins: #307D7E".. table.concat ( admins, "," ), root, 255, 255, 0, true) outputChatBox("* SuperModerator: #307D7E" .. table.concat ( superModerators, "," ), root, 255, 255, 0, true) end
  4. Castillo

    about GUİ

    GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(355,249,503,303,":O| Destruction Derby Userpanel v1.01", true) guiSetVisible ( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(369,259,113,30,"Close (F3)",false,GUIEditor_Window[1]) GUIEditor_Label[8] = guiCreateLabel(384,27,114,18,"Created by |V",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(14,249,183,37,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(355,249,503,303,":O| Destruction Derby Userpanel v1.01",true) GUIEditor_Label[1] = guiCreateLabel(20,31,196,26,"Your Stats:",false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(20,68,34,16,"Serial:",false,GUIEditor_Window[2]) GUIEditor_Label[9] = guiCreateLabel(58,68,287,17,"".. getPlayerSerial ( ) .."",false,GUIEditor_Window[2]) GUIEditor_Label[3] = guiCreateLabel(19,99,32,17,"Wins:",false,GUIEditor_Window[2]) GUIEditor_Label[4] = guiCreateLabel(18,129,38,16,"Points:",false,GUIEditor_Window[2]) GUIEditor_Label[5] = guiCreateLabel(17,159,83,16,"Second places:",false,GUIEditor_Window[2]) GUIEditor_Label[6] = guiCreateLabel(16,184,73,15,"Third places:",false,GUIEditor_Window[2]) GUIEditor_Label[7] = guiCreateLabel(17,213,33,17,"Rank:",false,GUIEditor_Window[2]) triggerServerEvent("GUIwins",getLocalPlayer()) triggerServerEvent("GUIpoints",getLocalPlayer()) triggerServerEvent("GUIsecond",getLocalPlayer()) triggerServerEvent("GUIthird",getLocalPlayer()) triggerServerEvent("GUIrank",getLocalPlayer()) function guiToggleVisible ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "f1", "down", guiToggleVisible ) addEvent ( "GUIwins", true ) addEventHandler ( "GUIwins", root, function ( wins ) if ( wins ) then GUIEditor_Label[10] = guiCreateLabel ( 55, 100, 287, 17, "".. wins .. "", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIpoints", true ) addEventHandler ( "GUIpoints" ,root, function ( points ) if ( points ) then GUIEditor_Label[11] = guiCreateLabel ( 60, 129, 287, 17, "".. points .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIsecond", true ) addEventHandler ( "GUIsecond",root, function ( second ) if ( second ) then GUIEditor_Label[12] = guiCreateLabel ( 102, 159, 287, 17, "".. second .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIthird", true ) addEventHandler ( "GUIthird", root, function ( third ) if ( third ) then GUIEditor_Label[13] = guiCreateLabel ( 90, 184, 287, 17, "".. third .."", false, GUIEditor_Window[2] ) end end ) addEvent ( "GUIrank", true ) addEventHandler ( "GUIrank", root, function ( rank ) if ( rank ) then GUIEditor_Label[14] = guiCreateLabel ( 51, 213, 287, 17, "".. rank .."", false, GUIEditor_Window[2] ) end end )
  5. Castillo

    Skin

    You must use the Engine functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions @-RoCk-Alex: Your script has syntax errors.
  6. doesn't helps I wasn't really trying to help decompile scripts, as he could decompile stolen scripts .
  7. Castillo

    Laser

    I'm not sure, maybe bullet textures are inside the .txd file of the weapon?
  8. Use: guiGridListAddRow and guiGridListSetItemText
  9. Busca en esta pagina: https://community.multitheftauto.com/, hay muchos recursos para crear casas.
  10. There's a resource called "gatemaker" which let's you create gates in game.
  11. There's "luadec", which doesn't decompile the script exactly like it was, but with a lot of changes, variable names missing, and other things.
  12. You can't use numbers as variable names. You should test what you post.
  13. function createText ( ) -- add your code here end function TheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, TheRendering ) --And if you want to stop rendering. function stopTheRendering ( ) removeEventHandler ( "onClientRender", root, createText ) --now removing the eventhandler end addCommandHandler ( "stoprender", stopTheRendering ) -- You had 'addCommandHamdler', that's wrong.
  14. @Draken: That script make's no sense, you're setting the text of the rows with the return of xmlLoadFile which isn't the content of course.
  15. Castillo

    DEL

    Aca ayudamos a arreglar sus problemas, no damos los scripts porque no quieren aprender.
  16. Castillo

    DEL

    Aca no damos los scripts como asi, nosotros te ayudamos a resolver los problemas que tengas. Podes empezar a aprender aca: http://development.mtasa.com/wiki/ES/In ... %B3n_a_Lua http://development.mtasa.com/wiki/ES/In ... B3n_de_GUI http://lua-users.org/wiki/TutorialDirectory
  17. Castillo

    ID Admin

    Of course it can be done, but we're not going to do it for you .
  18. Castillo

    ID Admin

    Well, then I suggest to do easier things first.
  19. Castillo

    ID Admin

    You should create a function like: getPlayerByID ( theID ) and then implement it on the admin panel.
  20. Castillo

    ID Admin

    If you want to kick players by their "ID", you'll have to modify the admin panel.
  21. What? I told you to search for "SKIN REPLACEMENTS" because in "zombies_client.lua" it says that, and just below there's the skin replacement code.
  22. Of course it won't, they are just texture mods, remove the files and take them off meta.xml, then search for "SKIN REPLACEMENTS" and remove them all.
×
×
  • Create New...