-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
vehicleIDS[math.random(#vehicleIDS)]
-
function getAccount local account = getPlayerAccount(thePlayer) if account then getAccountData(time) end end function setAccount local account = getPlayerAccount(thePlayer) if account then setAccountData(time) end end addEventHandler("onPlayerQuit", getAccount) addEventHandler("onPlayerJoin", setAccount) --------------------- Does this make sense for you? You get the current time and output it if the random number wasn't 1, 2, 3, 4, 5. make sense? no? Though i told you to use timestamp not hours and minutes. local time = getRealTime() local hours = time.hour local minutes = time.minute outputChatBox ( "Wait "..hours..":"..minutes.. "till you can use the gift command") Where is the brackets here? function getAccount function setAccount And getAccount is mta native function name, you can't use it. Where is thePlayer defined? local account = getPlayerAccount(thePlayer) where time is defined? Where is the rest of the arguments of the function getAccountData (2 arguments required). getAccountData(time) where time is defined? Where is the rest of the arguments of the function setAccountData (3 arguments required). setAccountData(time) Where is the rest of the arguments of the function addEventHandler (3 arguments required). And why you did put these event, you don't even need them. addEventHandler("onPlayerQuit", getAccount) addEventHandler("onPlayerJoin", setAccount) No logical here, you didn't save the time and you didn't get it and you didn't compare it.
-
This make no sense.
-
getRealTime -- You will need: < to make sure the timestamp bigger than the timestamp + a day timestamp. getPlayerAccount setAccountData getAccountData You don't need a timer and table. Instead of the table you should do this: function getGift(player) local num = math.random(1, 5) if num == 1 then givePlayerMoney(player, 2000) elseif num == 2 then outputChatBox("Too bad you've won nothing today", player) elseif num == 3 then giveWeapon(player, 31, 200) elseif num == 4 then addPedClothes(player, 9) elseif num == 5 then removePedClothes(player, 9) end end addCommandHandler("gift", getGift)
-
This won't work when the player reconnect to the server. timestamp should be used with some kind of save system, e.g account data. And your table is wrong.
-
I can't see anything wrong here, make sure you have these lines include in your script (never forget them). GUIEditor = { gridlist = {}, window = {}, button = {} }
-
https://wiki.multitheftauto.com/wiki/OnPlayerModInfo
-
getAccountData المثال حق حفظ فلوس^
-
https://community.multitheftauto.com
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=4058
-
Useful website. http://www.w3schools.com/sql/
-
Last version here: https://code.google.com/p/mtasa-resources/downloads/list
-
اعداداتك مضبوطه معناتها المشكلة هنا
-
No point of doing this as the two functions i posted above do the job simply.
-
شكل المشكلة انت مو عارف وين تحط الكلينت و وين تحط السيرفر
-
Not Tested. local bountyTeam = createTeam("Bounty") function bountySet(player, cmd, amount, target) local amount = tonumber(amount) local target = getPlayerFromName(target) if target and amount then local team = getPlayerTeam(target) if team ~= bountyTeam then local money = getPlayerMoney(player) if (money >= amount) then local r, g, b = getPlayerNametagColor(target) setElementData(target, "Bounty", {amount, team, r, g, b}) takePlayerMoney(player, amount) setPlayerTeam(target, bountyTeam) setPlayerNametagColor(target, 225, 0, 0) outputChatBox("A bounty of has been set on "..getPlayerName(target), player) else outputChatBox("You don't have this amount.", player, 225, 0, 0) end else outputChatBox("You cannot set a bounty on a bounty!", player, 225, 0, 0) end end end addCommandHandler("setbounty", bountySet) function bountyKill(ammo, killer, killerweapon, bodypart) if (killer) and getElementType(killer) == "player" and (killer ~= source) then if getPlayerTeam(source) == bountyTeam then local BountyTable = getElementData(source, "Bounty") if BountyTable then givePlayerMoney(killer, BountyTable[1]) setPlayerTeam(source, BountyTable[2]) setPlayerNametagColor(source, BountyTable[3], BountyTable[4], BountyTable[5]) setElementData(source, "Bounty", false) end end end end addEventHandler("onPlayerWasted", root, bountyKill) --[[ I don't understand what are you trying to do here. local antispam = {} function bountyInfo () outputChatBox("write /setbounty to set a bounty", player, 225, 0, 0) if ( antispam[getPlayerSerial(player)] ) and ( getTickCount()-antispam[getPlayerSerial(player)] < 300000 ) then outputChatBox( "You can't use /kill multiple Times", player, 225, 0, 0) outputChatBox( "Only once every 5 minutes!", player, 225, 0, 0) end end addCommandHandler ("bounty", bountyInfo) ]]
-
جرب كلينت: function BlockWallhackSetting() local x = dxGetStatus() if x.SettingAntiAliasing > 0 and x.SettingAnisotropicFiltering > 0 and x.SettingWindowed == true then triggerServerEvent("onUseWallhackSetting", localPlayer) end end setTimer(BlockWallhackSetting, 5000, 0) سيرفر: addEvent("onUseWallhackSetting", true) addEventHandler("onUseWallhackSetting", root, function() kickPlayer(source, "Don't Use WallHack Setting") end)
-
BF4 مقارنة بين جرافيكس الكمبيوتر و جرافيكس البلايستيشن في PS3 vs PC مع الملاحظة ان اولان لاين بتلفيلد الحد الأقصى للاعبين في الكونسول 24 لاعب فقط اما في الكمبيوتر الحد يوصل إلى 64 لاعب فيديو آخر PS4 vs PC و واضح تفوق الكمبيوتر بالجرافيكس بالكمبيوتر BF3 انا العب http://battlelog.battlefield.com/bf3/soldier/TAPL-93/stats/920445446/pc/ تيتان ذا من كروت الفئة العليا و سعره مبالغ فيه جداً ، ماله داعي في كروت نزلت افضل منه و ارخص بكثير المعالج زيون تبي تركبه على كمبيوتر للألعاب؟ زيون حق خوادم من الجيل الثاني او الثالث او الرابع يكفي للألعاب core i5 اي معالج الرام 8 جيجا كافية جداً للألعاب و حتى 4 جيجا تمشي الشغل المذربورد مالها اي تأثير بقوة الجهاز في تشغيل الألعاب اهم شي تكون المذربورد متوافقة مع باقي قطع الكمبيوتر
