-
Posts
1,239 -
Joined
-
Last visited
Everything posted by -.Paradox.-
-
exports.scoreboard:scoreboardAddColumn("EXP") exports.scoreboard:scoreboardAddColumn("Level") function levelup (ammo, killer, weapon, bodypart) if (killer and getElementType(killer) == "player" and killer ~= source) then local XP = getElementData(killer, "EXP") or 0 local LVL = getElementData(killer, "Level") or 1 setElementData(killer, "EXP", tonumber(XP)+10) if tonumber(XP) == 100 then setElementData(killer, "Level", 2) elseif tonumber(XP) == 200 then setElementData(killer, "Level", 3) elseif tonumber(XP) == 300 then setElementData(killer, "Level", 4) elseif tonumber(XP) == 400 then setElementData(killer, "Level", 5) elseif tonumber(XP) == 500 then setElementData(killer, "Level", 6) elseif tonumber(XP) == 600 then setElementData(killer, "Level", 7) elseif tonumber(XP) == 700 then setElementData(killer, "Level", 7) elseif tonumber(XP) == 800 then setElementData(killer, "Level", 7) elseif tonumber(XP) == 900 then setElementData(killer, "Level", 10) end end end addEventHandler("onPlayerWasted", getRootElement(), levelup) function onLogin (_,account) setElementData(source, "Level", getAccountData(account, "Level") or 1) setElementData(source, "EXP", getAccountData(account, "EXP") or 0) end addEventHandler ("onPlayerLogin", root, onLogin) function onLogout (_,account) setElementData(source, "Level", 0) setElementData(source, "EXP", 0) end addEventHandler ("onPlayerLogout", root, onLogout) function saveData(thePlayer, theAccount) local theAccount = getPlayerAccount(source) if (theAccount and not isGuestAccount(theAccount)) then setAccountData (theAccount, "Level", getElementData(thePlayer, "Level")) setAccountData (theAccount, "EXP", getElementData(thePlayer, "EXP")) end end addEventHandler ("onPlayerQuit", root, function () saveData(source, getPlayerAccount(source)) end) addEventHandler ("onPlayerLogout", root, function () saveData(source, getPlayerAccount(source)) end)
-
He didn't clean it up lol, Read Wassim's code again.. compare this {"AK47", 30, "pro", "weapon_range", 200} with this (id, skill, property, value) so basically id = ak47, skill = 30, property = pro, value weapon_range? that's why franklin deifned them here local weaponID = v[2] local weaponSkill = v[3] local weaponProperty = v[4] local weaponValue = v[5]
-
I think removing that line will attempt to perform arithmetic on a boolean value and getPedBonePosition will return false; Bad pointer..
-
I don't think that's safe either..
-
Hello, Is it possible to transfer my 1.3.5 server's database from the current version to 1.4? By database i mean where players accounts are stored with element datas, money etc... And if it possible a little help telling how would be appreciated. Thanks.
-
Try replacing this line playerName = playerName:gsub ( v[1], v[2] )
-
Use getAccountData to see if he use the jetpack for first time if not then set his AccountData to first time else nothing as far as i know
-
Where is the second argument here? addEventHandler( "onRankUp", What's the point of removing the element check? That wont change anything...
-
You mean like 2 element Datas in one column?
-
Ask the owner of the script, and stop stealing people's codes. viewtopic.php?f=91&t=77318
-
A moderator should lock this topic
-
I don't think its possible...
-
Well it's simple: Client function replaceModel() txd = engineLoadTXD("wheel_gn1.txd", 1074 ) engineImportTXD(txd, 1074) dff = engineLoadDFF("wheel_gn1.dff", 1074) engineReplaceModel(dff, 1074) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) P.S: -- 1074 is the id of the wheel
-
https://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs
-
Yes it's possible.
-
Yeah it's clear, Dont think i'm dumb you are still trying to copy it.
-
(HELP)How to make a door that opens only for a group
-.Paradox.- replied to lucascba's topic in Scripting
use getElementData --To get the gang's name createObject moveObject addCommandHandler -
Spider is copying grafuroam, maxim is copying spider... You will never learn guys, since you are still trying to copy a successful server then you dont have a life or a price. Learn scripting and make a creative server from your mind, not stealing other people's ideas.
