Jump to content

Dex

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Location
    United States

Dex's Achievements

Vic

Vic (3/54)

0

Reputation

  1. How I can stop the server when it is running? Please, help ... OS: Debian 6.0 (x86)
  2. Hi all. One question, how I can start my server in Debian. Follow all these steps: First you need to download the source. svn checkout [url=http://mtasa-blue.googlecode.com/svn/branches/]http://mtasa-blue.googlecode.com/svn/branches/[/url]1.3.1/ mtasa-blue cd mtasa-blue Then compile it thus: autoreconf -fiv export PKG_CONFIG_PATH=/usr/lib32/pkgconfig ./configure LDFLAGS="-m32" CPPFLAGS="-m32" CFLAGS="-m32" CXXFLAGS="-m32" $@ make make -C MTA10_Server install make -C Shared/XML install Get the net.so like this: wget [url=https://nightly.multitheftauto.com/?multitheftauto_linux]https://nightly.multitheftauto.com/?multitheftauto_linux[/url]-1.3.1-rc-latest -O multitheftauto_linux-1.3.1-latest.tar.gz tar -xzf multitheftauto_linux-1.3.1-latest.tar.gz --transform 's:[^/]*:latest_nightly:' mv latest_nightly/net.so MTA10_Server/output/ rm -rf latest_nightly multitheftauto_linux-1.3.1-latest.tar.gz Copy config files: cp MTA10_Server/mods/deathmatch/acl.xml MTA10_Server/output/mods/deathmatch/acl.xml cp MTA10_Server/mods/deathmatch/mtaserver.conf MTA10_Server/output/mods/deathmatch/mtaserver.conf Get resources: svn export [url=http://mtasa-resources.googlecode.com/svn/trunk/]http://mtasa-resources.googlecode.com/svn/trunk/[/url] MTA10_Server/output/mods/deathmatch/resources And the server should be ready in MTA10_Server/output would be starting screen -S mta ./C:/mtasa-blue/mta-server??? Please, help D;
  3. Hi all, How I can install MTA in CentOS 6 64bit?, i'm new to this and the truth is that know not much. Please help =/
  4. Hi all!, I wanted to change the top tag (original name) 'playerName' by my name tag with the my team. Original Tag: Example|TAG In my team: Example|TAG I want the toptimes appear with the team that are within as well as the example "Example|TAG" idk if it'll be ok the script =/ function CToptimes:doOnServerSentToptimes( data, serverRevision, playerPosition ) outputDebug( 'TOPTIMES', 'CToptimes:doOnServerSentToptimes ' .. tostring(#data) ) local numLines = math.clamp( 0, #data, 50 ) self.size.y = 15 + 46 + 15 * numLines local sizeX = self.size.x local sizeY = self.size.y guiSetSize( self.gui['windowbg'], sizeX, sizeY, false ) self:updateLabelCount(numLines) for i=1,numLines do local timeText = data[i].timeText if timeText:sub(1,1) == '0' then timeText = ' ' .. timeText:sub(2) end local line = string.format( '%d. %s %s', i, timeText, data[i].getPlayerNametagColor ) -- i change playerName with getPlayerNametagColor guiSetText ( self.gui['listTimes'][i], line ) if i == playerPosition then guiLabelSetColor ( self.gui['listTimes'][i], 255, 255, 255 ) else guiLabelSetColor ( self.gui['listTimes'][i], 255, 255, 255 ) end end
  5. I would like to add columns to my toptimes,I did this for now. But how to get players, time and date =/ what else would have to do?, help! local columns = { {"N°", 0.02}, {"Player", 0.086, "name"}, {"Time", 0.5, "time"}, {"Date", 0.69, "date"}, } addEvent("ToptimesUpdate", true ) addEventHandler("ToptimesUpdate", getRootElement(), function(toptimeLimit, mapName, toptimes) limit = toptimeLimit or 10 MAP_NAME = mapName or "Unknown" TOPTIMES = toptimes or {} end)
  6. Dex

    Points problem

    I have a problem with pointsystem. what happens is that when a player enters the server, the player wins. And the player in the first place, not it wins the points and the money. *this script is not made ​​by me, I just want to help me solve the problem - server.lua function checkWinAndIfWinGiveWinCash () local rank = getAliveCount() local allAlivePlayers = getAlivePlayers() local player = allAlivePlayers[1] local playeracc = getPlayerAccount(player) local playerCount = getPlayerCount() local pointsToWin = playerCount *37 local cashToWin = playerCount *187 local money = getPlayerMoney(player) local woncash = money + cashToWin if not isGuestAccount(playeracc) then if (rank == 1) then savePlayerData (player,"points",loadPlayerData(player,"points") + pointsToWin) setPlayerMoney(player, woncash) outputChatBox ("#ff0000* #ffffff" .. getPlayerName(player) .." #ffffffis wins #ff0000" .. tostring(pointsToWin) .." #ffffffpoints and #ff0000" .. tostring(cashToWin) .. "$",getRootElement(),255,0,0,true) end end if isGuestAccount(playeracc) then if (rank == 1) then outputChatBox ("#ffaa00* #ffffff"..getPlayerName(player)..clor.." #ff000should log in to earn money and points",getRootElement(),255,0,0,true) end end end addEventHandler ("onPlayerWasted",getRootElement(),checkWinAndIfWinGiveWinCash) addEventHandler ("onPlayerRaceWasted",getRootElement(), function() killPed (source) setElementHealth (source,0) if (isPedInVehicle(source)) then blowVehicle (getPedOccupiedVehicle(source)) end end) function findPlayerByName (playerPart) for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end function getDeadCount () deadAmount = 0 for i,v in ipairs (getDeadPlayers()) do deadAmount = deadAmount +1 end return deadAmount end function getSpawnedCount () spawnedAmount = 0 for i,v in ipairs (getAlivePlayers()) do if (isPedInVehicle (v)) then spawnedAmount = spawnedAmount +1 end end return spawnedAmount end function getAliveCount () aliveAmount = 0 for i,v in ipairs (getAlivePlayers()) do aliveAmount = aliveAmount +1 end return aliveAmount end
×
×
  • Create New...