khaledmhammed Posted August 21, 2015 Share Posted August 21, 2015 (edited) مرحبا شباب هذا الكود ساعدني فيه كم واحد م المنتدى جزاهم الله خير لكن ابي اضيف لا التيم سوات قلت واحد يربح فلوس اضفت فنكشن الفلوس بس مازان ماتوصل فلوس Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler('onPlayerWasted',root, function(_,attacker) setTimer ( function(attacker,source) if attacker and attacker ~= source and getElementType(attacker) == 'player' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then givePlayerMoney ( plr,4000 ) if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end end end end, 2000, 1 ,attacker,source) end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) سوال لو احذف ملفات [editor] [managers] لتخفيف التعليق هل لها تاثير جانبي لسيرفر ! Edited August 22, 2015 by Guest Link to comment
khaledmhammed Posted August 22, 2015 Author Share Posted August 22, 2015 مم plr? امم شو في اسم المتغير سويته نفس اسم الفنكشن Link to comment
The Killer Posted August 22, 2015 Share Posted August 22, 2015 جرب كذا: Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler ("onPlayerWasted", root, function (_, attacker) if (attacker and attacker ~= source and getElementType (attacker) == "player" then if getPlayerTeam (attacker) and getTeamName (getPlayerTeam (attacker)) == "[sWAT]" then setTimer (function (attacker, source) if getPlayerWantedLevel (source) > 0 then if getPlayerTeam (source) and getTeamName (getPlayerTeam (source)) ~= "[sWAT]" then givePlayerMoney (attacker, 4000) if Times [getPlayerWantedLevel (source)] then jailPlayer (source, Times [getPlayerWantedLevel (source)]) end end end end, 2000, 1, attacker, source) end end end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) سؤالك الثاني # لا طبعا @_@ لا ما لها دخل باللاق # ومن الاساس الماب مانجر يكون شغال لاكن الايديتور ما يكون شغال وما له دخل باللاق اساسا # الا تشغله انت من نفسك Link to comment
khaledmhammed Posted August 22, 2015 Author Share Posted August 22, 2015 جرب كذا: Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler ("onPlayerWasted", root, function (_, attacker) if (attacker and attacker ~= source and getElementType (attacker) == "player" then if getPlayerTeam (attacker) and getTeamName (getPlayerTeam (attacker)) == "[sWAT]" then setTimer (function (attacker, source) if getPlayerWantedLevel (source) > 0 then if getPlayerTeam (source) and getTeamName (getPlayerTeam (source)) ~= "[sWAT]" then givePlayerMoney (attacker, 4000) if Times [getPlayerWantedLevel (source)] then jailPlayer (source, Times [getPlayerWantedLevel (source)]) end end end end, 2000, 1, attacker, source) end end end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) سؤالك الثاني # لا طبعا @_@ لا ما لها دخل باللاق # ومن الاساس الماب مانجر يكون شغال لاكن الايديتور ما يكون شغال وما له دخل باللاق اساسا # الا تشغله انت من نفسك ماجاء شي والاعب مصار يروح سجن Link to comment
The Killer Posted August 22, 2015 Share Posted August 22, 2015 طيب جرب كذا Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler('onPlayerWasted',root, function(_,attacker) setTimer ( function(attacker,source) if attacker and attacker ~= source and getElementType(attacker) == 'player' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then givePlayerMoney ( attacker,4000 ) if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end end end end, 2000, 1 ,attacker,source) end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) Link to comment
khaledmhammed Posted August 22, 2015 Author Share Posted August 22, 2015 طيب جرب كذا Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler('onPlayerWasted',root, function(_,attacker) setTimer ( function(attacker,source) if attacker and attacker ~= source and getElementType(attacker) == 'player' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then givePlayerMoney ( attacker,4000 ) if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end end end end, 2000, 1 ,attacker,source) end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) قام بسجن الاعب محمد The Killer زبط يعطيك الف الف عافيةة لكن لو ابي لو قتلت مجرم يطلغ بشات الاعب اذا ماعليكك امر سويها لي Link to comment
The Killer Posted August 22, 2015 Share Posted August 22, 2015 Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler('onPlayerWasted',root, function(_,attacker) setTimer ( function(attacker,source) if attacker and attacker ~= source and getElementType(attacker) == 'player' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then givePlayerMoney ( attacker,4000 ) outputChatBox (getPlayerName (attacker) .. " has arrested " .. getPlayerName (source), root, 255, 255, 0) if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end end end end, 2000, 1 ,attacker,source) end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end ) Link to comment
khaledmhammed Posted August 22, 2015 Author Share Posted August 22, 2015 شكرأ اككثير لك شغال وزي العسسل الاغلب له مبرمج يفضله او يعتبره الافضل او يعتبره قدوة ب البرمجة لذالك تحيـأتي ل الاخ ذا بيست ,ضاوي, ذا كيلير,زاحف,حسين,سفاح, احمد + مونستر ولكل شخص هدفة افادة الغير Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now