Jump to content

RDHosting

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by RDHosting

  1. What stops you from just searching the servers in alphabetical order yourself?

    he can't search becouse he can access his server only by internal ip, but other players use his external ip to connect. mta server is listed as external_ip : port

  2. I am making a new RPG server and i am halfway done with it, so now i am looking for someone to help me complete it and i will give him admin rights.

    (ps. i will host the server)

    Skype userneme: tonyjunak

    Skype name: antonio junakovic

    Facebook: antonio junakovic

  3. Here is the script:

      
    function startJob ( playerSource ) 
        local x, y, z = getElementPosition ( playerSource ) 
        if ( chauffeurSkins[getElementModel ( playerSource )] ) then 
            if not playerClients[ playerSource ] then 
                local numLocations = #taxiLocations 
                if ( numLocations > 0 ) then 
                    repeatCount = 0; 
                    repeat 
                        local pickupPoint = math.random(numLocations) 
                        pickupx = taxiLocations[pickupPoint]["x"] 
                        pickupy = taxiLocations[pickupPoint]["y"] 
                        pickupz = taxiLocations[pickupPoint]["z"] 
                        pickupr = taxiLocations[pickupPoint]["r"] 
                        local jobDistance = getDistanceBetweenPoints3D ( x, y, z, pickupx, pickupy, pickupz ); 
                        repeatCount = repeatCount+1 
                    until jobDistance > 100 and jobDistance < 800 + repeatCount*100 
                     
                    repeat  
                        local id = math.random( 10, 270 )  
                        ped = createPed( tonumber( id ), pickupx, pickupy, pickupz )  
                        setPedRotation ( ped, pickupr ) 
                    until ped 
                     
                    playerClients[ playerSource ] = {  }; 
                    table.insert( playerClients[ playerSource ], ped ); 
                    table.insert( jobClients, ped ); 
                     
                    local pedBlip = createBlipAttachedTo ( ped, 41, 2, 255, 0, 0, 255, 1, 99999.0, playerSource) 
                    playerBlips[ playerSource ] = {  }; 
                    table.insert( playerBlips[ playerSource ], pedBlip ); 
                     
                    pedMarker = createMarker ( pickupx, pickupy, 0, cylinder, 6.5, 255, 255, 0, 150, playerSource) 
                    playerCols[ playerSource ] = {  }; 
                    table.insert( playerCols[ playerSource ], pedMarker ); 
                    addEventHandler( "onMarkerHit", pedMarker, arrivePickup ) 
                    outputChatBox ( "Pickup the passenger located at the marker.", playerSource ); 
                else 
                    outputChatBox ( "No passenger pickup points specified, contact an admin!", playerSource ); 
                end 
            else 
                outputChatBox ( "You allready have an assignment!", source ); 
            end 
             
        else 
            outputChatBox ( "You don't have a job!", source ); 
        end 
    end 
    addCommandHandler ("startjob", startJob); 
    

    how to make binding if i plress f1 to startJob

    PS. I tried bindKey ("down","f1",startJob) and it is not working for me

  4. 3167w2f.png

    RDHosting is best and very cheap MTA Server Hosting. Contact me on MTA Forums if you are interested.

    Here are the prices:

    - $0.10 per player (max. 256 players)

    - $0.50 per day (max. 90 days)

    - $2.50 if size is more than 1gb (max. 4 gb)

    We also offer a Free Trial Period for your server:

    - max. 64 players

    - max. 3 days

    - max. 450 mb

    Contact me on MTA Fourms Account

×
×
  • Create New...