Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I said explain what do you need, understand me? I want to know what do you really want to do.
  2. Could you explain me what do you really want to do?
  3. Castillo

    help me

    You already have a topic here: viewtopic.php?f=91&t=41730
  4. https://community.multitheftauto.com/index.php?p= ... ils&id=963 Ese recurso cambia los controles, derecha se transforma en izquierda, etc.
  5. local carRadios = { } -- Create a table. function attachradio ( thePlayer ) local car = getPedOccupiedVehicle ( thePlayer ) if ( car ) then if ( isElement ( carRadios[ car ] ) ) then -- If the vehicle already has a radio... destroyElement ( carRadios[ car ] ) -- Destroy it. end local x, y, z = getElementRotation ( car ) carRadios[ car ] = createObject ( 2232, 1016.2437133789, -2473.1711425781, 7.6930656433105, x, y, z ) -- Create radio object for the vehicle. attachElements ( carRadios[ car ], car, 0, -4, 0.45 ) -- Attach the radio to the vehicle. triggerClientEvent ( thePlayer, "playRadioCar", getRootElement(), car ) outputChatBox ( "Here is the radio!", thePlayer ) end end addCommandHandler ( "radio", attachradio )
  6. Topic moved to correct section.
  7. Castillo

    Skin take

    @Draken: I've tested my code several times, the pickup is created. So far I've tested it with: Desert Eagle ( 24 ) and M4 ( 31 ).
  8. Deberia funcionar. Tenes que agregar el recurso que contiene ese script al "acl.xml", grupo "Admin". Para quitar objetos de un grupo del ACL es muy simple, en realidad es igual que agregar. function quitarclan ( playerSource, commandName, accountName ) if ( accountName ) then aclGroupRemoveObject ( aclGetGroup ( "MCC" ), "user.".. accountName ) outputChatBox ( "El Usuario '".. accountName .."' fue eliminado de MCC", playerSource ) aclReload ( ) else outputChatBox ( "No especificaste Usuario.", playerSource ) outputChatBox ( "Syntax: /quitarmiembro [Nombre de Usuario]", playerSource ) end end addCommandHandler ( "quitarmiembro", quitarclan ) function agregaraclan ( playerSource, commandName, accountName ) if ( accountName ) then aclGroupAddObject ( aclGetGroup ( "MCC" ), "user.".. accountName ) outputChatBox ("El Usuario '".. accountName .."' fue agregado a MCC", playerSource ) aclReload ( ) else outputChatBox ( "No especificaste Usuario.", playerSource ) outputChatBox ( "Syntax: /agregarmiebro [Nombre de Usuario]", playerSource ) end end addCommandHandler ( "agregarmiembro", agregaraclan )
  9. No hay de que. Tema cerrado.
  10. Again skid marks shader: https://community.multitheftauto.com/index.php?p= ... ls&id=4227
  11. To add new mod shops, you must edit the script, as "modshops.xml" isn't really implemented ( as far as I know ).
  12. No offense, but commands are a pain in the ass.
  13. https://wiki.multitheftauto.com/wiki/Shader_examples
  14. I wouldn't use DX drawing on an Admin Panel, as it would lag on old PC's. P.S: Is just an admin panel, is not something players will constantly use.
  15. As I supposed, the dots are the problem, you don't need them. -- LoadMods.lua: function LoadMods() -- [ XZIBIT CHARACTER ] -- local SkinTXD = engineLoadTXD("mods/xzibit.txd") engineImportTXD(SkinTXD, 10) local SkinDFF = engineLoadDFF("mods/xzibit.dff", 10) engineReplaceModel(SkinDFF, 10) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), LoadMods) -- meta.xml: -- Server Header --> "Sathler" type="gamemode" name="RPG MODE" description="Our project" /> "mapa/main_prison.map" /> -- Server Scripts -->
  16. Castillo

    Skin take

    lockSkins = { [ 287 ] = true, [ 121 ] = true } function onDeathPickupHit ( player ) local skin = getElementModel ( player ) if ( lockSkins[ skin ] ) then destroyDeathPickup ( source ) else cancelEvent ( ) outputChatBox("*Só militares podem pegar esta arma.", player, 255, 0, 0) end end function destroyDeathPickup ( pickup ) if ( isElement ( pickup ) ) then removeEventHandler ( "onPickupUse", pickup, onDeathPickupHit ) destroyElement ( pickup ) end end addEventHandler ( "onPlayerWasted", root, function ( _, killer ) local timeout = 60000 local x, y, z = getElementPosition ( source ) local currentweapon = getPedWeapon ( source ) local totalammo = getPedTotalAmmo ( source ) local pickup = createPickup ( x, y, z, 2, currentweapon, 50, totalammo ) addEventHandler ( "onPickupUse", pickup, onDeathPickupHit ) setTimer( destroyDeathPickup, timeout, 1, pickup ) end )
  17. You could use processLineOfSight I think.
  18. They may be using slothbot resource: https://community.multitheftauto.com/index.php?p= ... ils&id=672
  19. Programa: viewtopic.php?f=91&t=27739 Recurso: viewtopic.php?f=108&t=22831
  20. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=4222
  21. I'm locking this topic. @rolling11: If you want me to unlock it, just PM me.
×
×
  • Create New...