Jump to content

ZL|LuCaS

Members
  • Posts

    293
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by ZL|LuCaS

  1. client cam = 0 function lookDMSelection( source ) setCameraMatrix(source, 2296.2890625, -1395.0576171875, 694.02215576172, 2308.0771484375, -1410.1640625, 688.58026123047) end function lookDDSelection( source ) setCameraMatrix(source, 2262.130859375, -1402.4462890625, 699.66162109375, 2271.5087890625, -1421.4033203125, 691.99346923828) end function lookHTSelection( source ) setCameraMatrix(source, 2248.107421875, -1400.54296875, 695.64147949219, 2232.736328125, -1411.4306640625, 696.97576904297) end bindKey( "arrow_r", "down",function(source) if cam == 0 then lookDDSelection(source) cam = cam+1 elseif cam == 1 then lookHTSelection(source) cam = cam+1 elseif cam == 2 then lookDMSelection(source) cam = 0 end end) ?
  2. https://wiki.multitheftauto.com/wiki/PlaySound3D ?
  3. -- setElementData(allPlayers,"Mod1",x+1) test function t = 0 x = 0 for index, allPlayers in ipairs(getElementsByType("player")) do setElementData(allPlayers,"Mod1",x+1) -- test function local data = getAllElementData ( allPlayers ) for k, v in pairs ( data ) do if k == "Mod1" then t = t+tostring ( v ) outputDebugString(t) end end end
  4. this? addEventHandler("onPlayerChat",root,function(message, messageType) if messageType == 0 then cancelEvent() local dimLocal = getElementDimension(source) for k,v in ipairs(getElementsByType("player")) do local dimRoot = getElementDimension(v) if dimLocal == dimRoot then outputChatBox(getPlayerName(source)..": #FFFFFF"..message,v,255,255,255,true) outputServerLog("CHAT: "..getPlayerName(source)..": "..message) end end end end) fixed line 6.
  5. ZL|LuCaS

    Qestion

    race and play is simple only use arrays as setElementData use getElementData to define which will run for the player the simple way to do this --example if getElementData(localPlayer,"Modo") == "Play") then spawn camera vehicle warp etc remembering that it is not professional. this is an example.
  6. https://wiki.multitheftauto.com/wiki/GivePedJetPack https://wiki.multitheftauto.com/wiki/RemovePedJetPack this works be sure to stop the freeroam
  7. explain better add example: count = count + 1 every time the event is called
  8. ZL|LuCaS

    [SELL]

    what name this source?
  9. ZL|LuCaS

    Server Load

    as @eAi, said reinstall the resources folder and add scripts one on one to see what is causing it.
  10. pode ser algum modelo na sua pasta baixada pelos servidores arrume os links das imagens.
  11. getKeyState? check continuously if the key is active | or cancel uppercase messages as this. if not string.find(string.lower(text), text, 1, true) then outputChatBox("#E7DBADCaps Lock desativado.",source, 255, 255, 255, true) cancelEvent() return end
  12. https://forum.multitheftauto.com/viewtopic.php?f ... ta#p636705
  13. simple script I've lost count of how many times did it ..
  14. ZL|LuCaS

    Help

    I think you're in the wrong section
  15. addEvent('onPlayerPickUpRacePickup') addEventHandler("onPlayerPickUpRacePickup", getRootElement(),function(number, sort, model) if sort == "vehiclechange" then if model == 425 then local mapname = call(getResourceFromName("mapmanager"),"getRunningGamemodeMap") setHunterOnMap(mapname) if not hunterMsg then outputChatBox( "#ff0000[#ff9e00HFUNTER ALERT#ff0000]:El jugador:" .. getPlayerNametagText(player).. "llego al hunter", getRootElement(),255,255,255,true ) outputChatBox( "#ff0000[#ff9e00HFUNTER ALERT#ff0000]:#ffffffEl color del cielo & agua ahora es #FF0000DEFAULT", getRootElement(),255,255,255,true ) outputChatBox( "#ff0000[#ff9e00PM#ff0000]" .. getPlayerNametagText(player).. "#ffffff:Corre por tu vida!", getRootElement(),255,255,255,true ) triggerClientEvent("onServerSendHunterMessage",getRootElement(),hunterHundleInfo) hunterMsg = false end if getActivePlayerCount() <= 0 then setElementHealth(source, 0) end end end end) ?
  16. this is a great resource "Otherwise: http://mta-sa.org/index.php?page=Thread ... highlight= Maybe I'll publish the script for free. What do you think?" if I may say should be included in versions of mta-sa, this is very good thanks for sharing
  17. I had not seen your response Den
  18. this works perfectly for me findRotation return nil ? test code Client-Side addEventHandler ( "onClientRender", getRootElement ( ), function ( ) local PlayerX, PlayerY, PlayerZ = getElementPosition ( getLocalPlayer ( ) ) for i, v in ipairs ( getElementsByType("player") ) do if v == getLocalPlayer() then else local PedX, PedY, PedZ = getElementPosition ( v ) local dist = getDistanceBetweenPoints3D ( PlayerX, PlayerY, PlayerZ, PedX, PedY, PedZ ) local PX, PY, PZ = getElementPosition ( getLocalPlayer ( ) ) local PeX, PeY, PeZ = getElementPosition(v) local Rot = findRotation(PeX, PeY, PX, PY) if dist <= 40 then local scx, scy = getScreenFromWorldPosition ( PedX, PedY, PedZ + 1.2, -50, true ) if isLineOfSightClear ( PlayerX, PlayerY, PlayerZ, PedX, PedY, PedZ, true, false, false, false ) and scx and scy then local alpha = 200 local r = 0 local g = 150 local b = 200 local scale = 2 local scale3d = true local font = "default-bold" local text = getElementData(localPlayer, "ACL") or "" dxDrawText ( text, scx, scy, scx, scy, tocolor ( r, g, b, alpha ), scale, font, "center", "center",true,true,true,true) local rem, asd, asd2 = getTimerDetails(InterTimer) local p = rem / 500 if not val1 or not val2 then return end local v1,v2,v3 = interpolateBetween(val1, 0,0, val2, 0,0, p, "Linear") local MyScale = ( ( v1 / 100 ) * 1.3 ) /( ( 1360 / x ) * ( 768 / y ) ) if dist <= 10 then if not getKeyBoundToFunction(ChallengePlayer) then bindKey("H", "down", ChallengePlayer, v) end local scx2, scy2 = getScreenFromWorldPosition ( PedX, PedY, PedZ + 1, -50, true ) local alpha2 = 255 dxDrawText ( "#66ffaaPress #ffffffH #66ffaaTo Challenge", scx2, scy2, scx2, scy2, tocolor ( r, g, b, alpha2 ), MyScale * 1.5, font, "center", "center",false,false,false,true ) else if getKeyBoundToFunction(ChallengePlayer) then unbindKey("H","down",ChallengePlayer) end end else alpha = 0 end else alpha = 0 end end end end ) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end; return t; end Server-Side addEventHandler( 'onPlayerLogin', root, function ( ) local account = getPlayerAccount( source ) if account and not isGuestAccount( account ) then local accountName = getAccountName( account ); if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Owner" ) ) then setElementData(source, "ACL", "Owner") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "ClanMananger" ) ) then setElementData(source, "ACL", "Clan-Mananger") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setElementData(source, "ACL", "Admin") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "SuperModerador" ) ) then setElementData(source, "ACL", "SuperModerador") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Moderador" ) ) then setElementData(source, "ACL", "Moderador") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Miembro" ) ) then setElementData(source, "ACL", "Miembro") elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "MiembroTrial" ) ) then setElementData(source, "ACL", "MiembroTrial") end end end ) addEventHandler( 'onPlayerLogout', root, function ( ) local acl = getElementData(source, "ACL") if acl then removeElementData(source,"ACL") end end)
  19. do not quite understand what you said. use. getAccountData
  20. ZL|LuCaS

    Userpanel

    you are the creator, does anyone have it?
  21. ZL|LuCaS

    Script

    add my skype:zika.odete
×
×
  • Create New...