Jump to content

iMr.SFA7

Members
  • Posts

    2,013
  • Joined

  • Last visited

Everything posted by iMr.SFA7

  1. مشكلتك بالتشفير ولا وين ؟ اذا بالتشفير فتأكد أن القروب سيستيم مآفيه آكوآد مثل أضافة حساب لـ قروب آو نقل اللاعبين التلغيم عموماً
  2. -- Client Side addEvent ( "addMaps_", true ) addEventHandler ( "addMaps_", root, function ( m_table ) guiGridListClear ( GUIEditor.gridlist[1] ) cMaps = m_table for _,v in ipairs ( m_table ) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, v, true, true) end end ) addEventHandler ( "onClientGUIChanged", GUIEditor.edit[1], function ( ) if ( guiGetText ( GUIEditor.edit[1] ) ~= "" ) then guiGridListClear ( GUIEditor.gridlist[1] ) for _,v in ipairs ( cMaps ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) if ( string.find ( string.upper ( v ), string.upper ( guiGetText ( GUIEditor.edit[1]) , 1, true ) ) ) then guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, v, false, false ) end end else guiGridListClear ( GUIEditor.gridlist[1] ) for _,v in ipairs ( cMaps ) do local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, v, true, true) end end end ,false )
  3. استخدم SQLite لاسوآ حساب جديد احفظه ولا حاول يسوي واحد ثاني يمنعه
  4. طيب هو شآرح لكك بالمقطع وحآط لكك الأكواد بالرابط آيش فيه ؟ ذذذذ
  5. لآزم المجرم تكون نجومه فوق 0 !
  6. تأثيرات مثل آيش ؟
  7. Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, {3494.4184570313, -894.68341064453, 11.62656211853}, {3496.6020507813, -904.40509033203, 11.62656211853}, {3496.6020507813, -904.40509033203, 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' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end 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 )
  8. iMr.SFA7

    سؤال

    لا ما تقدر تستخدم حدث ثآني لآكن تقدر تدمج سكربت التآج مع قيم مود التكتيك أقصد بكلآمي آنك تخلي الوظيفتين بحدث وآحد
  9. حيآك في آي وقت حذفت التحقق فقط لا غير
  10. Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, {3494.4184570313, -894.68341064453, 11.62656211853}, {3496.6020507813, -904.40509033203, 11.62656211853}, {3496.6020507813, -904.40509033203, 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('onPlayerDamage',root,function(attacker,weapon) 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 if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end 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)
  11. سطر 31 غير أيدي السلاح للي تبيه ذذ أو سوي جدول وحط فيه آيديات الآسلحة الي تبيها ذذ
  12. iMr.SFA7

    سؤال

    اذا مود التكتيك فيه الحدث onPlayerChat وسكربت التآج فيه الحدث onPlayerChat فـ بيصير تعآرض بين الحدثين فـ بيكرر
  13. بدل الحدث "onClientResourceStart"
  14. الكود ذا مافي أنشاء ماركر فيه أنشاء بيد الي عليك تحط الأحداثيات حقته local ped = createPed ( ... ) setElementFrozen (ped, true) addEventHandler ("onClientPedDamage", ped, cancelEvent)
  15. قصدك يجيب قروبات الأسل الي هو مضاف فيها ؟
  16. ترآ محد فهمك ! وضح ذذ
  17. أعتقد تقصد لاكتبت جزء من أسم الماب يجي بالبحث ؟ هنا يجي أستخدامكك لـ string.find
  18. آمم قصدكك ميوت الأدمنية ولا ميوت من سكربت ثاني ؟
  19. الدوائر ذي ماركر ! createMarker لما يجي ع الماركر ذا تسوي له ديتسروي destroyElement وتنشئ الماركر القدام createMarker
  20. حيآككك في آي وقت !
  21. مافهمتك ؟ وضح ! فتح اللوحة "onClientMarkerHit" guiSetVisible
×
×
  • Create New...