Jump to content

MYSOTO

Members
  • Posts

    44
  • Joined

  • Last visited

2 Followers

Details

  • Gang
    Staff for MundoAnime
  • Location
    mundo anime
  • Occupation
    Scripter
  • Interests
    scripts anime videogames programming

Recent Profile Visitors

2,035 profile views

MYSOTO's Achievements

Snitch

Snitch (10/54)

1

Reputation

  1. function clickInv(b, s) if (show_Inv == true and s=='down' and b=='left') then for i,v in pairs(slots) do if isMouseInPosition(v[1], v[2], v[3], v[4]) then selected = i end end end end You can use this
  2. function funk (source) setElementFrozen(source, true) -- Freeze player Movement bindKey (source, "K", "up", desbloquear) --Add key to desbloquear funtion next:giveItem(source, "Chocolate", 1) end function desbloquear (source) setElementFrozen(source, false) -- desbloquea el movimiento del jugador end
  3. you dont have resource "Vehicles_auxiliar", you need put the resource name vehicles_auxiliar in you resources folder
  4. Remplace this line: if isObjectInACLGroup( "user." .. p[ player ].username, aclGetGroup( value.aclGroup ) ) and value.nametagColor then For this: if (isObjectInACLGroup( "user." .. p[ player ].username, aclGetGroup( groups[key].aclGroup ) ) and groups[key].nametagColor) then You can test this
  5. Hello, I come to suggest that it would be good to put the particles inside the mta map editor, I know that there are already functions to create particles but it would be nice and flexible that these can be added from the editor to avoid the user having to add them outside of it itself, this would save players time
  6. Use this https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
  7. I would use this, to calculate the position of the lights or vehicle components, then you could use the export function to create the light in the car https://wiki.multitheftauto.com/wiki/GetVehicleComponentPosition exports.dynamic_lighting:createPointLight( )
  8. you can add new groups here in the acl file MTA San Andreas 1.5\server\mods\deathmatch\acl.xml <group name="military"> <acl name="military"></acl> <object name="user.pepe"></object> - ---USERS IN ACL PEPE </group> , Below is an example of how to add military to your code function chatbox( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#08BCD0~| Admin |~ #1AEBC1 " .. getPlayerName ( source ) .. ":#00FF36 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Admin] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#EB064F~| Moderator |~#1AEBC1 " .. getPlayerName ( source ) ..":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [Moderator] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("military")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#08BCD0~| military |~ #1AEBC1 " .. getPlayerName ( source ) .. ":#00FF36 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [military] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#EB064F~|> SMOD <|~##1AEBC1 " .. getPlayerName ( source ) ..":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [SMOD] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Diamante")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#EB064F~|> VIP Diamante <|~##1AEBC1 " .. getPlayerName ( source ) ..":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VIP DIAMANTE] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Gold")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#EB064F~|> VIP GOLD <|~##1AEBC1 " .. getPlayerName ( source ) ..":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [VIP GOLD] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Soporte")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#08BCD0~| Sop |~#1AEBC1 " .. getPlayerName ( source ) .. ":#FF0005 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [sop] " .. getPlayerName ( source ) .. ": " .. text) elseif type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( " " .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true ) outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) end end addEventHandler("onPlayerChat", getRootElement(), chatbox)
  9. Remember to have saved the file in case it is not saved, possibly you did not restart it in the console, it may be the code editor, it also happens to me that sometimes it is bugea I recommend you restart the program or change it for another editor, I recommend atom or sublimetext to edit code
  10. MTA San Andreas 1.5\MTA\cgui\images this is the path, there is the mta splashart inside its respective folder the file is called background.png
  11. You can do this with database, I would use the GetPedWeapon, takeAllWeapons and giveWeapon functions. You could use setElementData to manipulate the mta database below I leave you an example to remove all the weapons when doing the command. ------server.lua----- function tkw ( source ) takeAllWeapons ( source ) end addCommandHandler ( "takeweapon", tkw )
  12. Podrías usar: setWorldSoundEnabled - para deshabilitar el sonido base que deseas cambiar y PlaySound3D para poner el sonido (real) en tu caso depende si quieres cambiar el sonido de un vehículo o armas puedes usar onClientKey para poner el sonido en una tecla por ejemplo al presionar click
  13. This is a copy for my rs: https://community.multitheftauto.com/?p=resources&s=details&id=16529 My rs : https://community.multitheftauto.com/?p=resources&s=details&id=16207 he copy my idea DENIED - it's not a copy, he used his own code. Ideas cannot be protected.
  14. for i, thePlayer in ipairs ( getElementsByType( "player" ) ) do if ( sasori ~= thePlayer ) then local px, py, pz = getElementPosition( thePlayer ) local tx, ty, tz = getElementPosition( player ) if ( getDistanceBetweenPoints3D( px, py, pz, tx, ty, tz ) <= 50 ) then setElementHealth( thePlayer, ( getElementHealth( sasori ) - 80 ) end end end Hola tengo ese pequeño script pero quiero que le quite vida a los que están cerca del jugador pero no al jugador porfa tengo esa duda
  15. hello I have a problem rather a doubt someone knows how it could be done to make some parts of the body of the player, I know it is done with shaders but someone could pass me a script or some way of doing it since I do not know anything about shaders or pass an editable script, please for example: https://www.youwwwube.com/watch?v=sOTDHReX2rs
×
×
  • Create New...