Xero~

Members
  • Content count

    38
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Xero~

  • Rank
    Rat
  • Birthday 08/12/1999

Details

  • Gang
    Scripting MTA:SA

Recent Profile Visitors

911 profile views
  1. Problema con funcion de Spectador

    Hola, podrias crear una condiciĆ³n para que directamente tu no aparezcas en dicha gridlist aca de dejo un ejemplo: for i, players in ipairs(getElementsByType("player")) do if(players ~= localPlayer) then row = guiGridListAddRow( gridlist ) --guiGridListSetItemText(...) end end
  2. help

    thanks, it worked for me
  3. help

    Hello, how can I detect when a player loses or receives money? I want to create a dxRectangle that appears when a player loses or recives money
  4. random occurrence of objects

    objects = { {1264, -2168.7001953125,1879.7998046875,-69.199996948242}, {926, -2198.599609375,1853.400390625,-57.599998474121}, {1356, -2156.6796875,1838.1103515625,-65.067947387695} } function createRandomObject() if isElement(object) then destroyElement(object) end if isElement(blip) then destroyElement(blip) end randomObject = math.random(#objects) id, x, y, z = unpack(objects[randomObject]) object = createObject(id, x, y, z) blip = createBlipAttachedTo(object, 0) end addCommandHandler("create", createRandomObject) with this example, write /create will create a random object.
  5. Timer

    htt marker = createMarker(1.00, 1.00, 1.00, "cylinder", 0, 0, 0, 0, 0) time = 0 function teleport(player) local x, y, z = getElementPosition(player) local rotZ = getElementRotation ( player ) local aa = {} if getTickCount() - time >= 30000 then -- 30 seg if (source == marker and getElementType(player) == "player") then setElementPosition(player, 1.00, 1.00, 1.00) setElementFrozen(player, false) setTimer(setElementFrozen, 1000, 1, player, false) time = getTickCount() end else outputChatBox("You must wait 30 seconds to use this.", player, 255, 0, 0) end end addEventHandler("onMarkerHit", root, teleport)
  6. [HELP] Why not working onMarkerHit event?

    function ccv (thePlayer) local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then setTimer(function() ve1 = createVehicle ( 535, -2220.98706, -129.69173, 35.32031 ) ma1 = createMarker ( -2221.09668, -129.61031, 33.88103, "cylinder", 7.5, 255, 255, 0, 5 ) addEventHandler( "onMarkerHit", ma1, marker1) end, 1000, 1) end end addCommandHandler("ccvp", ccv) function marker1( hitElement ) if(getElementType(hitElement) == "player") then if isElement(ve1) then destroyElement(ve1) end if isElement(ma1) then destroyElement(ma1) end end end try this.
  7. Help me

    7/5000 Thank you Sugerir un cambio Thank you!
  8. Help me

    - If I use setElementPosition on the client side when going to x zone, will the players see me when I go to x zone? or will I just see myself?
  9. Help me

    Hi, I'm new here, let's say I've learned a lot but what I still have trouble understanding is the deference between creating a client script or server, if I create a marker in client, only I will see it and the other players will not? creating a warp system and this bothers me a lot
  10. Ayuda con jugadores en una dimension |AYUDA|

    Completa la funciĆ³n DxDrawText en el ejemplo que te dio alex y te funcionara.
  11. Necesito crear un script k genere un objeto

    function torre() local x, y, z = getElementPosition(localPlayer) x = x + 5 if isElement(obj) then destroyElement(obj) end obj = createObject(3279, x, y, z-1, 0, 0, 0 ) createBlipAttachedTo(obj, 54) end addCommandHandler("create", torre)
  12. car = {} car[1] = createVehicle(411, x, y, z) -- Example Markers = {} Markers[1] = createMarker(z, y, z, "cylinder", 1.5, 255, 255, 0) --Example Blips = {} Blips[1] = createBlipAttachedTo(Markers[1], 54) -- Example function exitforcar (player, seat) if(getElementModel(source) == 411) then if player == localPlayer and seat == 0 then for i, v in ipairs(car)do if isElement(v)then destroyElement(v) end end for i, maker in ipairs(Markers)do if isElement(maker)then destroyElement(maker) end end for i, blip in ipairs(Blips)do if isElement(blip) then destroyElement(blip) end end end end end addEventHandler ("onClientVehicleExit", root, exitforcar )
  13. [Help]Redirect Server player

    in acl admin group add this: <object name="resource.yourResourceName"></object>
  14. Help Cylinder Skin

    you're welcome
  15. Help Cylinder Skin

    local Marker1 = createMarker ( 1246.4675292969, 338.46069335938, 18.5546875, "cylinder", 3, 0, 0, 255, 100) function Skinc (hitElement) if(getElementType(hitElement) == "player") then if getPlayerTeam(hitElement) ~= getTeamFromName("Militar") then outputChatBox (getPlayerName(hitElement) .. ' is not Militar Member!', hitElement, 255, 0, 0, true ) else setElementModel ( hitElement, 17 ) outputChatBox (getPlayerName(hitElement) .. ' #00FF00Has been giving a Militar Skin', hitElement, 255, 0, 0, true) end end end addEventHandler( "onMarkerHit", Marker1, Skinc )