Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Maybe spammer click click click?
  2. viewtopic.php?f=108&t=36791#p379190 Copyright
  3. Cadu12

    Free Hosting

    http://www.mywot.com/en/scorecard/tucktail.com
  4. Oh my gods... Thanks Wojak My eyes are sucks
  5. I will tell more one, when I do jump or fly(added), im still getting barrel rolled (loaded)
  6. I was adding my own script, but I have one problem is that when I jump, it gets rolled (setElementRotation) Edited: Problem Solved
  7. Cadu12

    HELP!!

    https://wiki.multitheftauto.com/wiki/IsVehicleOnGround isVehicleOnGround ( vehicle theVehicle ) Take a look Example, that you need vehicle
  8. Cadu12

    fix . .

    "value: the new value of the stat (0..999) " Custom are unlimited
  9. Cadu12

    fix . .

    You have to make your own custom.
  10. Solidsnake14, you can read other topics: viewtopic.php?f=91&t=36413 <-- VIP donate from SHC viewtopic.php?f=91&t=37622 <-- Stole client-side and he wants decompile viewtopic.php?f=91&t=37610&p=387607#p387607 <-- from SHC viewtopic.php?f=91&t=37526 <-- I dont know His english is sucks and scripts english clear are good. Thats he stole at all
  11. Jesseunit, you can ask mod/smod in IRC.
  12. Edit in race_toptimes, add event (https://wiki.multitheftauto.com/wiki/TriggerEvent), and edit in race_ghost.
  13. Cadu12

    Problem cash

    When you use executeSQLUpdate will be saved. Or you doesnt need to make, DB every time will be saved.
  14. It will be delete when you close the server. Edit: Agree with Solidsnake14
  15. You can create your own module, read the wiki about module.
  16. Cadu12

    Problem cash

    Solidsnake14, as onPlayerPickUpRacePickup it needs fix multi or it'll bugs/spam (i mean multi-pickup for hunter). huntersplayers = {} function creatingTables() exports.scoreboard:addScoreboardColumn("Cash") executeSQLCreateTable("playerData", "serial STRING, Cash INT, DMAttempts INT, DDAttempts INT") outputChatBox("Cash System by KHD started.") for index, player in ipairs(getElementsByType("player")) do addAccountIfNotExists(player) end end addEventHandler("onResourceStart", resourceRoot, creatingTables) function addAccountIfNotExists(player) local serial = getPlayerSerial(player) CheckPlayer = executeSQLSelect ( "playerData", "serial", "serial = '" .. serial .. "'" ) if ( type( CheckPlayer ) == "table" and #CheckPlayer == 0 ) or not CheckPlayer then executeSQLInsert ( "playerData", "'"..serial.."','0','0','0'" ) end end addEventHandler("onPlayerJoin",root,function () addAccountIfNotExists(source) end) function DestructionMoney(mapInfo,mapOptions,gameOptions) info = mapInfo.modename if mapInfo.modename == "Destruction derby" then huntersplayers = {} for k,v in ipairs(getElementsByType("player")) do local serial = getPlayerSerial(v) local DDAttempts = executeSQLSelect ( "playerData", "DDAttempts","serial = '" .. serial .. "'") local DDAttempts = tonumber(DDAttempts[1]["DDAttempts"]) + 1 executeSQLUpdate ( "playerData", "DDAttempts = '"..DDAttempts.."'","serial = '" .. serial .. "'") setElementData(v,"data.DDAttempts",DDAttempts,true) end end end addEvent("onMapStarting") addEventHandler("onMapStarting", getRootElement(), DestructionMoney) function DestructionMoney2(thePlayer) local playername = getPlayerName(thePlayer) local serial = getPlayerSerial(thePlayer) local Cash = executeSQLSelect ( "playerData", "Cash","serial = '" .. serial .. "'") outputChatBox("*Wins: "..playername.." took $"..get('MoneyForDD').." for winning the map!",getRootElement(),255,255,0) local Cash = tonumber(Cash[1]["Cash"]) + get('MoneyForDD') setElementData(thePlayer ,"Cash", Cash) setElementData(thePlayer ,"data.money",Cash,true) setElementData(thePlayer ,"data.playername",playername,true) executeSQLUpdate ( "playerData", "Cash = '"..Cash.."'","serial = '" .. serial .. "'") end function hunterBonus(pickupID, pickupType, vehicleModel) if (info == "Destruction derby" and pickupType == "vehiclechange" and vehicleModel == 425) and (not huntersplayers[source] or huntersplayers[source] == false) then local serial = getPlayerSerial(source) local Cash = executeSQLSelect ( "playerData", "Cash","serial = '" .. serial .. "'") local Cash = tonumber(Cash[1]["Cash"]) + 1000 huntersplayers[source] = true outputChatBox("*Hunter: "..getPlayerName(source).." gets a $1000 hunter bonus!",source,25,125,225) setElementData(source ,"Cash", Cash) setElementData(source ,"data.money",Cash,true) executeSQLUpdate ( "playerData", "Cash = '"..Cash.."'","serial = '" .. serial .. "'") end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),hunterBonus)
  17. Stole. I know you got other server and got SHCstats system from SHC
  18. Cadu12

    Cursor question

    local sCnumber = 0 local _showCursor = showCursor function showCursor(bool) if bool == true then sCnumber = sCnumber + 1 _showCursor(true) elseif bool == false then sCnumber = sCnumber - 1 if sCnumber == 0 then _showCursor(false) end end end If you use multi-gui, open and close will not close mouse
×
×
  • Create New...