-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
Maybe spammer click click click?
-
viewtopic.php?f=108&t=36791#p379190 Copyright
-
http://www.mywot.com/en/scorecard/tucktail.com
-
Oh my gods... Thanks Wojak My eyes are sucks
-
I will tell more one, when I do jump or fly(added), im still getting barrel rolled (loaded)
-
I was adding my own script, but I have one problem is that when I jump, it gets rolled (setElementRotation) Edited: Problem Solved
-
MTADiag - diagnostic tool for MTA:SA & Support section information
Cadu12 replied to Towncivilian's question in Client
Great work, good job- 58 replies
-
- mtadiag
- mta support
- (and 7 more)
-
"value: the new value of the stat (0..999) " Custom are unlimited
-
You have to make your own custom.
-
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
-
Jesseunit, you can ask mod/smod in IRC.
-
Edit in race_toptimes, add event (https://wiki.multitheftauto.com/wiki/TriggerEvent), and edit in race_ghost.
-
When you use executeSQLUpdate will be saved. Or you doesnt need to make, DB every time will be saved.
-
You're welcome.
-
It will be delete when you close the server. Edit: Agree with Solidsnake14
-
You can create your own module, read the wiki about module.
-
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)
-
Stole. I know you got other server and got SHCstats system from SHC
-
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