Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    [REL]K-Garage

    I don't want to sound rude, but this could have been done in just some lines using a table.
  2. Yes, that's right, but they already work in the nightly builds of 1.1.
  3. The new DB functions are MySQL, aren't they? if so, they are now implemented on MTA. https://wiki.multitheftauto.com/wiki/Ser ... _functions
  4. If you can't find something, you better either start learning LUA or pay someone to do it for you. You can check these pages to start learning: https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  5. Castillo

    AMX

    AMX come from PWN files, some of them can be used with the MTA "AMX" emulator.
  6. This resource was not scripted by him, it was one I scripted long time ago. https://community.multitheftauto.com/index.php?p= ... ls&id=3222
  7. You mean that you can't warp yourself to ANY vehicle? if so, try restarting MTA.
  8. lol, that's because you did "getRootElement()" in the triggerServerEvent, that'll set the position of EACH and EVERY element. function doneButton(thePlayer) guiSetVisible(guiSkinShop,false) guiSetVisible(windowLogin, false) showCursor(false) triggerServerEvent("setCameraRegister", localPlayer) end
  9. Castillo

    mta car mod

    function replaceModel() txd = engineLoadTXD("Turismo.txd") engineImportTXD(txd, 425) dff = engineLoadDFF("Turismo.dff", 425 ) engineReplaceModel(dff, 425) end addEventHandler ( "onClientResourceStart", resourceRoot, replaceModel) addCommandHandler ( "reloadcar", replaceModel )
  10. Castillo

    mta car mod

    You'll need LUA scripting knowledge to do this. You must use these functions to replace a vehicle, object, weapon or ped. https://wiki.multitheftauto.com/wiki/Cli ... _functions
  11. addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if (killer) then if (bodypart == 4) then outputChatBox("#Ouch ! " ..getPlayerName(killer).. " shot you in your ass!", source, 255, 255, 0, true) elseif (bodypart == 9)then outputChatBox("#OWNED ! "..getPlayerName(killer).." shot you in your head!", source, 255, 255, 0, true) else outputChatBox("# "..getPlayerName(killer).." killed you! Now kill him, noob! -_-'", source, 255, 255, 0, true) end if (killer ~= source) then local stars = getPlayerWantedLevel(killer) if (stars == 0) then setPlayerWantedLevel(killer, stars+1) elseif (stars == 1) then setPlayerWantedLevel(killer, stars+2) elseif (stars == 3) then setPlayerWantedLevel(killer, stars+3) outputChatBox(getPlayerName(killer) .. " now has 6 wanted stars! Watch out!", 255, 255, 0, true) end end end end)
  12. That command is on some gamemodes, but is not a built-on command. P.S: Really DanChris? if so, good luck .
  13. Castillo

    mta 1.2

    Yes, I know about setPedWeaponInfo, I used it on a nightly of MTA 1.2, but they removed it, setWeaponProperty is the same function as far as I know.
  14. There's one gamemode missing, RPG, is not the same as Roleplay.
  15. Puede haber dos razones para que no funcione: 1): Que tu script tenga errores, 'end's faltantes y esas cosas. 2): Que la codificacion sea UTF-8. Si la codificacion es UTF-8 entonces cambiala a UTF-8 without BOM.
  16. Look, I'm just saying that when a zombie punchs me it still takes my health, even when I've cancelled it. Forget about onPlayerDamage.
  17. onPlayerDamage cannot be cancelled. You edited wrong lol (or maybe you used onPlayerDamage at runcode and failed?) I just said that onPlayerDamage is triggered with setElementHealth, I know that it cannot be cancelled.
  18. Yes, it does, /crun /run /srun. P.S: How is possible to work for one but not for other? , what version of MTA are you using John?
  19. If it does, then why is a zombie taking my health when I executed this via runcode: addEventHandler("onClientPlayerDamage",getRootElement(), function () cancelEvent() end)
  20. Benxamix, onClientPlayerDamage doesn't cancel the setElementHealth function.
  21. Castillo

    WnIndows8

    You mean windows 7 won't let you connect to internet? Or windows 7 won't let you connect to MTA servers?
  22. That's because zombies use setElementHealth, that cannot be canceled, so you have to do this: addEventHandler("onClientPlayerDamage",root, function () setElementHealth(source,100) end)
×
×
  • Create New...