Jump to content

Gothem

Members
  • Posts

    194
  • Joined

  • Last visited

Posts posted by Gothem

  1. 2. hace un timer que se repita cada cierto tiempo. en donde se vea el dinero del jugador, vea si es que cambia y lo ponga en el scoreboard. (Eso es lo que hace el recurso admin para ver el dinero de los jugadores)

    3.

      
    function walktheprisoner(thecop, theprisoner) 
        if (getElementData ( theprisoner, "currentstatus" ) == "underarrest") and (getPedOccupiedVehicle ( theprisoner ) == false ) then 
            local copx, copy, copz = getElementPosition ( thecop ) 
            local prisonerx, prisonery, prisonerz = getElementPosition ( theprisoner ) 
            copangle = ( 360 - math.deg ( math.atan2 ( ( copx - prisonerx ), ( copy - prisonery ) ) ) ) % 360 
            setPedRotation ( theprisoner, copangle ) 
            setCameraTarget ( theprisoner, theprisoner ) 
            local dist = getDistanceBetweenPoints2D ( copx, copy, prisonerx, prisonery ) 
            if ( dist > 35 ) then 
                -- Aqui es cuando el jugador se aleja bastante 
                setElementPosition( theprisoner, copx, copy+1, copz ) --Teletransportamos el jugador al lado del policia 
            elseif ( dist > 17 ) then 
                setControlState ( theprisoner, "sprint", true ) 
                setControlState ( theprisoner, "walk", false ) 
                setControlState ( theprisoner, "forwards", true ) 
                local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) 
            elseif ( dist > 10 ) then 
                setControlState ( theprisoner, "sprint", false ) 
                setControlState ( theprisoner, "walk", false ) 
                setControlState ( theprisoner, "forwards", true ) 
                local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) 
            elseif ( dist > 5 ) then 
                setControlState ( theprisoner, "sprint", false ) 
                setControlState ( theprisoner, "walk", true ) 
                setControlState ( theprisoner, "forwards", true ) 
                local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) 
            elseif ( dist < 2 ) then 
                setControlState ( theprisoner, "sprint", false ) 
                setControlState ( theprisoner, "walk", false ) 
                setControlState ( theprisoner, "forwards", false ) 
                local zombify = setTimer ( walktheprisoner, 500, 1, thecop, theprisoner ) 
            end 
        end 
    end 
    

    Eso era lo que buscabas o no? o:

  2. 1. Para quitarle la función simplemente usas la función setPedAnimation(ped) y nada mas.

    2. Eso es por hacerlo client-side. Si quieres hacer alguna modificación al scoreboard es preferible hacerlo desde el servidor.

    3. Puedes explicar mejor cual era el problema?

  3. excellent idea...

    i tried to do it before but i found than the object limiter will prevent to do the gamemode....

    hopefully i think you should find a solution to that if you want to continue working and if you havent resolved that yet....

    btw.. good luck with your gamemode :D

    (if you want i can share my try of this gamemode. if you want, it is just debugging script )

  4. This means your PC has waited over 10 seconds to get the server list send to it, but hasn't yet been received. This could mean something is blocking the connection, either outgoing or incoming, or it just took a while for the master server to notice you sent a request. (which I doubt)

    You should try disabling all firewalls and other protective measures for a moment. See if that helps. If you've managed to fix it somehow, please tell everyone how you did it as it's a far too common problem at the moment.

    i have tried disabling all firewalls and passing the computer directly to internet.

    nothing works :/

  5. This means your PC has waited over 10 seconds to get the server list send to it, but hasn't yet been received. This could mean something is blocking the connection, either outgoing or incoming, or it just took a while for the master server to notice you sent a request. (which I doubt)

    You should try disabling all firewalls and other protective measures for a moment. See if that helps. If you've managed to fix it somehow, please tell everyone how you did it as it's a far too common problem at the moment.

    i have tried disabling all firewalls and passing the computer directly to internet.

    nothing works :/

  6. Does it say anything interesting in the lower-left corner of the server browser window? Something like:

    "Master server list could not be retrieved"

    "Master server list could not be parsed"

    Or is it just showing "Found 0 / xxx"?

    it says "Master server list could not be retrieved" D:

  7. Does it say anything interesting in the lower-left corner of the server browser window? Something like:

    "Master server list could not be retrieved"

    "Master server list could not be parsed"

    Or is it just showing "Found 0 / xxx"?

    it says "Master server list could not be retrieved" D:

×
×
  • Create New...