Jump to content

Araa

Members
  • Posts

    64
  • Joined

  • Last visited

About Araa

  • Birthday 25/02/1996

Details

  • Gang
    CIT
  • Location
    Argentina
  • Occupation
    Progamming Student.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Araa's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. function PerdisteElTrabajo (Player, localPlayer) if ( Posicion == 0 ) then outputChatBox("Abandonaste el colectivo perdiste el trabajo", Player, 255, 0, 0) SeAcabo () end end function MensajeAdvertencia2 (player, localPlayer) outputChatBox("ADVERTENCIA: Vuelve al colectivo o perderas el trabajo", Player, 255, 255, 0) end outputChatBox("Antes de sacar un colectivo debes seleccionar un recorrido.", Player, 255, 0, 0) end addEvent( "SeleccionaRecorrido", true ) addEventHandler( "SeleccionaRecorrido", getRootElement (), SeleccionaUnRecorrido ) Proba ahi, no toco un codigo hace meses pero calculo que puede andar :v
  2. Araa

    exports

    especificaste en el meta que la funcion es un export?
  3. function addTimer(hitElement) if (getElementType(hitElement) ~= "player") then return end addedtimer[hitElement] = setTimer(killPed, 60000, 1, hitElement) end addEventHandler( "onColShapeHit", safecol, addTimer) function removeTimer(hitElement) if (isTimer(addedtimer[hitElement])) then killTimer(addedtimer[hitElement]) end end addEventHandler( "onColShapeLeave", safecol, removeTimer)
  4. Araa

    Recieve points

    function raceWin( rank ) local acc = getPlayerAccount( source ) local ptzData = getAccountData( acc, "Points" ) if ptzData then setAccountData( acc, "Points", ptzData + pointswin ) else setAccountData( acc, "Points", pointswin ) end outputChatBox("[Points]#FFFFFF " .. getPlayerName(source).. " #00FF00 receive 1 point", getRootElement(), 255, 255, 255, true ) end addEventHandler("onPlayerFinish", getRootElement(), raceWin) function check() local alive = getAlivePlayers() local player = alive[1] local acc = getPlayerAccount( player ) local ptzData = getAccountData( acc, "Points" ) if (#alive <= 3) then if ptzData then setAccountData( acc, "Points", ptzData + pointsToWin ) else setAccountData( acc, "Points", pointsToWin ) end outputChatBox("[Points]#FFFFFF " .. getPlayerName(player).. " #00FF00 receive 10 points", getRootElement(), 255, 255, 255, true ) end end addEventHandler("onPlayerWasted",getRootElement(),check)
  5. Learn to portforward and take a look at this: https://wiki.multitheftauto.com/wiki/Server_Manual It might help you setting your server up.
  6. Checked its instructions? https://forum.multitheftauto.com/viewtop ... 0&start=46
  7. Araa

    Lock this

    for _, player in ipairs(getElementsByType("player")) do setElementVisibleTo(pilotMark, player, false) end for _, player in ipairs(getPlayersInTeam(teamPilot)) do setElementVisibleTo(pilotMark, player, true) end
  8. Araa

    Lock this

    What bugs are there? Post your debugerror. For the visible only thing use the 10th argument when creating the marker or simply use setElementVisibleTo
  9. probaste con setElementRotation?
  10. Araa

    [AYUDA] GUI POS

    Esto es lo que yo uso. rx, ry = guiGetScreenSize() guiCreateWindow((rx/2)-hx/2, (ry/2)-hy/2, hx, hy) Por Ejemplo, si tenes: guiCreateWindow(183,118,426,286,"",false) Para que funcione en otras resoluciones deberia ser: rx, ry = guiGetScreenSize() guiCreateWindow((rx/2)-213, (ry/2)-143, 426, 286, "", false) Notaste como 213 y 143 son las mitades de 426 y 286? Importante: Si estas usando el GUI Editor asegurate de que te muestre las coordenadas en absoluto, no en relativo.
  11. Podrias crear el vehiculo, warpeas al ped dentro del hunter y usar toggleControl para hacer que lo maneje, es medio complicado pero me parece que se puede.
  12. Araa

    Got a problem.

    LUA - CLIENT: addEventHandler("onClientResourceStart", resourceRoot, function() hWnd_Commands = guiCreateWindow( 0.2, 0.2, 0.6, 0.6, "Admin LVL.5 Commands || By Enjoy || Version 1.0", true ) hGrid_Admin = guiCreateGridList( 0.1, 0.1, 0.8, 0.6, true, hWnd_Commands ) guiSetVisible(hWnd_Commands, false) end) function visibleToAdmin5() triggerServerEvent('aclAdmin5', root) guiSetVisible(hWnd_Commands, true) showCursor(true) end addCommandHandler('mycmds', visibleToAdmin5) addEventHandler('onPlayerLogin', getRootElement(), visibleToAdmin5) LUA - SERVER: addEvent('aclAdmin5',true) function aclAdmin5_( ) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( client ) ), aclGetGroup ( "Admin5" ) ) then end end addEventHandler('aclAdmin5', getRootElement(), aclAdmin5_) Anyways, what you are trying to do it to make the check serverside? If so, it doesn't return any value, thus won't really make any effect on the clientside function.
  13. local marker1 function marker () marker1 = createMarker ( 2794.899, -2463.6, 12.6, "cylinder", 1.5, 255, 255, 255, 150 ) end addCommandHandler ("create", marker) function changeColor () setMarkerColor ( marker1, 255, 0, 0, 150 ) end addCommandHandler ("color", changeColor)
×
×
  • Create New...