Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You want to remove original skin mods at 'zombies' resource?
  2. I don't understand, what do you mean by disable the skins?
  3. I don't know, it should be like any other.
  4. It would be the same, you can put it on zombie_client. P.S: If the files are inside a folder you can do this: local zombieSkins = { [105] = "folderName/105", [258] = "folderName/258" }
  5. You can use my script which is easier to add more skins. You add them here: local zombieSkins = { [105] = "105", [258] = "258" } You don't have to edit the script.
  6. --Skin ID, File name. local zombieSkins = { [105] = "105", [258] = "258" } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for skin, model in pairs ( zombieSkins ) do if ( fileExists ( model ..".txd" ) and fileExists ( model ..".dff" ) ) then engineImportTXD ( engineLoadTXD ( model ..".txd" ), tonumber ( skin ) ) engineReplaceModel ( engineLoadDFF ( model ..".dff", 0 ), tonumber ( skin ) ) end end end ) That's what I use to replace zombie skins.
  7. Castillo

    Question

    killPed has 'killer' argument.
  8. Because you can't use string.find on a table.
  9. theCensored = { "STF", -- You forgot the comma. "LOL", -- You forgot the comma. "XDD" }
  10. words = { "lol", "xD", "ssffdd" } function lolout() local wordsString = "" for index, word in ipairs">ipairs ( words ) do wordsString = wordsString ..",".. word end outputChatBox( wordsString:gsub ( ",", "", 1 ), root, 255, 0, 0, true ) end
  11. You're looking for Colt 45 animations? if so you can search here: https://wiki.multitheftauto.com/wiki/Animations
  12. I would say that it's a stolen script, maybe? because of: it's compiled, you don't have the server side.
  13. You can't use any other language but English on this forum, if you want to talk on your native language then go to your respective language section at: viewforum.php?f=117
  14. Hola y bienvenido al foro . Cuando descargas el MTA viene con el servidor y recursos por defecto, eso es game modes, scripts, mapas, etc. Luego tenes la pagina donde podes descargar recursos/mapas publicos: https://community.multitheftauto.com/ Y para terminar te dejo links a la wiki del MTA donde podes aprender a crear tus propios scripts. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI https://wiki.multitheftauto.com/wiki/Writing_Gamemodes https://wiki.multitheftauto.com/wiki/Debugging http://www.lua.org/pil/index.html http://lua-users.org/wiki/TutorialDirectory Buena suerte.
  15. I'm not sure if I get what do you mean, what do you mean by: "It will just give me 2 colors"?
  16. That was my first though, I've just tested the "extrahealth" with a normal ped and it didn't work either. My code: ped = createPed(299, 0, 0, 5) exports["extrahealth"]:setElementExtraHealth ( ped, 10000 )
  17. Usa guiSetVisible para ocultar la segunda ventana.
  18. addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(158,128,486,425,"Panel de Ayuda",false) GUIEditor_Radio[1] = guiCreateRadioButton(14,115,85,42,"Comandos",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[1],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(29,18,419,89,"images/logobkz.png",false,GUIEditor_Window[1]) GUIEditor_Radio[2] = guiCreateRadioButton(14,148,96,42,"Informacion",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[2],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(152,110,324,241,"Comandos :\n\n F1 : Gui Canciones / Music GUI\n F2 : Panel de Ayuda\n F3 : Panel de Spawn de vehiculos Comprados\n F4 : Shader Panel / Panel para texturas reales",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Radio[3] = guiCreateRadioButton(14,178,96,42,"Sobre",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[3],"clear-normal") GUIEditor_Radio[4] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[4],"clear-normal") GUIEditor_Button[1] = guiCreateButton(348,366,124,40,"Cerrar",false,GUIEditor_Window[1]) GUIEditor_Memo[2] = guiCreateMemo(152,110,324,241,"Informacion Sobre el server :\n\nBuee yo ago casi todos los scripts ( ElMota ) uno que otro descargado. Aveces me ayudan con las functions en el foro del MTA",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) GUIEditor_Memo[3] = guiCreateMemo(152,110,324,241,"Sobre el server y la GUI :\n\nServer y GUI creada por ElMota ayudado con algunas Functions \n\n-----------------------------------------------------------------------------CopyRight 2012 (c)",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[3],true) GUIEditor_Memo[4] = guiCreateMemo(152,110,324,241,"Bueeno el clan del server es BKZ| Best Killer of Zombies Clan\n\nPara entrar minimo ai que tener 200 zombies kills y estar loggeado y registrado",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[4],true) GUIEditor_Image[2] = guiCreateStaticImage(18,367,59,30,"images/BAT.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(88,367,75,29,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Radio[5] = guiCreateRadioButton(14,115,85,42,"Commands",false,GUIEditor_Window[1]) guiRadioButtonSetSelected(GUIEditor_Radio[5],true) guiSetFont(GUIEditor_Radio[5],"clear-normal") GUIEditor_Radio[6] = guiCreateRadioButton(14,148,96,42,"Information",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[6],"clear-normal") GUIEditor_Radio[7] = guiCreateRadioButton(14,178,96,42,"About",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[7],"clear-normal") GUIEditor_Radio[8] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Radio[8],"clear-normal") GUIEditor_Memo[5] = guiCreateMemo(152,110,324,241,"Sorry for my bad english :\n\nF1 : Music GUI\nF2 : Animations\nF3 : Car Panel\nF4 : Shader Panel\nF5 : Help Panel.",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[5],true) GUIEditor_Memo[6] = guiCreateMemo(152,110,324,241,"This is my server and my Scripts by ( ElMota )\n\nSpam = Mute or Kick\nCheats or Hacks = Kick or Bann( 1 Year )\nBugs = Kick or Bann\n-",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[6],true) GUIEditor_Memo[7] = guiCreateMemo(152,110,324,241,"This scripts and this server have CopyRight 2012 (c)\n\nAnd the official Creator of this server is me ( ElMota )",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[7],true) GUIEditor_Memo[8] = guiCreateMemo(152,110,324,241,"The official Clan of this server is BKZ| Best Killer of Zombies Clan and is my clan , if u want be BKZ| u need 600 kills and be registered",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[8],true) GUIEditor_Button[2] = guiCreateButton(348,366,124,40,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(246,367,94,38,"Miembros",false,GUIEditor_Window[1]) addEventHandler ( "onClientGUIClick", GUIEditor_Button[3], abrirVentanaDeMiembros, false ) GUIEditor_Window[2] = guiCreateWindow(196,85,432,479,"Miembros del Clan",false) GUIEditor_Label[1] = guiCreateLabel(36,79,5,5,"",false,GUIEditor_Window[2]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,88,414,328,false,GUIEditor_Window[2]) GUIEditor_Tab[1] = guiCreateTab("Rangos Altos",GUIEditor_TabPanel[1]) GUIEditor_Label[2] = guiCreateLabel(9,29,105,25,"BKZ|ElMota",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(114,15,255,44,"Informacion del Jugador",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[3],"sa-header") GUIEditor_Label[4] = guiCreateLabel(118,65,174,27,"Nombre Real : Krlos Vaskez",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],200, 0, 10) GUIEditor_Label[5] = guiCreateLabel(8,58,105,25,"BKZ|Roro",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"clear-normal") GUIEditor_Label[6] = guiCreateLabel(118,94,174,27,"Edad : 14 años",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],200,0,10) GUIEditor_Label[7] = guiCreateLabel(118,120,174,27,"Rango : Fundador Del Clan",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],200,0,10) GUIEditor_Label[8] = guiCreateLabel(118,65,174,27,"Nombre Real : Rodrigo Soto",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],200,0,10) GUIEditor_Label[9] = guiCreateLabel(118,94,174,27,"Edad : 10 años",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],200,0,10) GUIEditor_Label[10] = guiCreateLabel(118,120,174,27,"Rango : SemiFundador Del Clan",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],200,0,10) GUIEditor_Tab[2] = guiCreateTab("Rangos Bajos",GUIEditor_TabPanel[1]) GUIEditor_Button[4] = guiCreateButton(321,424,100,43,"Cerrar",false,GUIEditor_Window[2]) GUIEditor_Button[3] = guiCreateButton(19,265,126,23,"Ver Skins Modificados",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(19,297,126,23,"Show Skins defaults",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(19,297,126,23,"Ver Skins por Defecto",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(9,265,138,23,"Show Skins Modifications",false,GUIEditor_Window[1]) end ) function abrirVentanaDeMiembros ( ) guiSetVisible ( GUIEditor_Window[2], true ) end
  19. Castillo

    Source

    Epic fail. @On topic: 'source' es un elemento definido de los eventos, ejemplo: 'source' en onPlayerJoin es el jugador que entro al servidor.
  20. 1: Your script is client side, and you're using takePlayerMoney, money is not synchronized when you take it client side. 2: You're checking if the vehicle is on ground, but that's not required. 3: You're using 'thePlayer', but your argument is 'Player. spray1 = createMarker ( -2437.853515625, 1036.1303710938, 49.5, "cylinder", 5, 0, 255, 0, 50 ) createBlipAttachedTo(spray1, 63) function Reparar ( thePlayer ) local dinero = getPlayerMoney ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if ( not vehicle ) then outputChatBox( "#c8c8c8Servidor: #ff0000No estas en un vehiculo!", thePlayer, 255, 0, 0, true ) return end if ( dinero >= 100 ) then takePlayerMoney( thePlayer, 100 ) fixVehicle( vehicle ) outputChatBox ( "#c8c8c8Servidor: #00ff00Vehiculo Reparado [100$]", thePlayer, 0, 255, 0, true ) else outputChatBox ( "#c8c8c8Servidor: #ff0000Dinero insuficiente", thePlayer, 255, 0, 0, true ) end end addEventHandler( "onMarkerHit", spray1, Reparar ) That script is server side.
  21. Castillo

    boneAttach

    What about map editor? it has objects list.
  22. Castillo

    boneAttach

    Set a timer to destroy the burger? P.S: I would suggest to make a table with the burger objects.
  23. Castillo

    boneAttach

    Oh, you should set the object interior . P.S: You're welcome.
×
×
  • Create New...