Jump to content
  • 0

WTF!?MTA SERVER PROBLEM :F


xTravax

Question

20 answers to this question

Recommended Posts

  • 0

well let me say what i did last when it worked

i was pressing random page on wiki and copied scripts and maked script.lua and meta.xml for them and one of them was download progress on chat but i put it in and then server started and i wrote start progressbar and it started and my server crashed and so i started again and it didnt work like my message above and i delete all these 4 scripts and still didn't work idk how to fix it..

Link to comment
  • 0

can't find but here's script lua

Progress Bar

-- If the progressbar exsist then 
if ( somebar ) then 
    -- set the progress 
        guiProgressBarSetProgress(somebar, 80) 
        -- get the progress 
    progress = guiProgressBarGetProgress(somebar) 
    -- output to the chatbox 
    outputChatBox ( "Current progress:" .. progress .. "%" ) 
else --if the progressbar was not found 
       outputChatBox ("progressbar not found!") 
       -- output a message 
end 

vehiclename

function showVehicleName ( thePlayer ) 
   local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
   if theVehicle then 
      outputChatBox ( "Name of the Vehicle: " .. getVehicleName ( theVehicle ), thePlayer ) 
   else 
      outputChatBox ( "You do not have a Vehicle!", thePlayer, 255, 0, 0, true ) 
   end 
end 
addCommandHandler ( "getcarname", showVehicleName ) 

moneysave

function onPlayerQuit ( ) 
      -- when a player leaves, store his current money amount in his account data 
      local playeraccount = getPlayerAccount ( source ) 
      if ( playeraccount ) then 
            local playermoney = getPlayerMoney ( source ) 
            setAccountData ( playeraccount, "piraterpg.money", playermoney ) 
      end 
end 
  
function onPlayerJoin ( ) 
      -- when a player joins, retrieve his money amount from his account data and set it 
      local playeraccount = getPlayerAccount ( source ) 
      if ( playeraccount ) then 
            local playermoney = getAccountData ( playeraccount, "piraterpg.money" ) 
            -- make sure there was actually a value saved under this key (check if playermoney is not false). 
            -- this will for example not be the case when a player plays the gametype for the first time 
            if ( playermoney ) then 
                  setPlayerMoney ( source, playermoney ) 
            end 
      end 
end 
  
addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) 
addEventHandler ( "onPlayerJoin", getRootElement ( ), onPlayerJoin ) 

and i dont remember 4th one

Link to comment
  • 0

also i here's 4th one

DRIVEBY

function setDoingDriveby ( ) 
        -- we check if local player isn't currently doing a gang driveby 
        if not isPedDoingGangDriveby ( getLocalPlayer () ) then 
                -- if he got driveby mode off, turn it on 
                setPedWeaponSlot ( getLocalPlayer (), 4 ) 
                setPedDoingGangDriveby ( getLocalPlayer (), true ) 
        else 
                -- otherwise, turn it off 
                setPedWeaponSlot ( getLocalPlayer (), 0 ) 
                setPedDoingGangDriveby ( getLocalPlayer (), false ) 
        end 
end 
addCommandHandler ( "driveby", setDoingDriveby ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...