Jump to content

jafar

Members
  • Posts

    1,434
  • Joined

  • Last visited

Everything posted by jafar

  1. جرب , addEventHandler ( "onPlayerWasted", root, function ( _, killer ) if isElement ( killer ) and source ~= killer then if isPedInVehicle ( killer ) then local vehicle = getPedOccupiedVehicle ( killer ); if vehicle then if getElementModel ( vehicle ) == 425 then outputChatBox ( getPlayerName ( killer ) .. " has kill " .. getPlayerName ( source ) .. " By Hunter." ); end end end end end );
  2. jafar

    تعديل

    string.len !! مايبي عدد الأرقام
  3. حاليا ماتقدر . تقدر فقط لملفات الكلنت
  4. اذا كان التايمر موجود ,, يوقف التايمر .
  5. الكود كامل عشان نعرف متغير اللاعب ~~
  6. مآ شآء الله تغيير حقوق BankMission V 1.0 By Charaf - Started أجل بالتوفيق = )
  7. fileDelete -- ماينفع تقدر تطلع الملف . إستخدم cache
  8. guiMemoSetReadOnly ( GUIEditor.memo[1], true ); -- addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then local gTextM = guiGetText ( GUIEditor.memo[1] ); local gText = guiGetText ( GUIEditor.edit[1] ); if gText ~= '' then guiSetText ( GUIEditor.memo[1], gTextM .. "\n" .. gText ); end end end );
  9. ماتقدر تكبر الخط لكن تقدر تحط خطوط من عندكك لـ DX dxCreateFont لـ GUI guiCreateFont أو تقدر تستخدم الخطوط الأصلية لـ MTA https://wiki.multitheftauto.com/wiki/St ... Font_Names
  10. تقدر تستخدم خط جديد .. guiCreateFont
  11. local marker = createMarker ( 4224, -1842.80005, 0.5, "cylinder", 2, 255, 255, 0, 0 ); createBlipAttachedTo ( marker, 15 ); function changeLocation ( person ) if getElementType ( person ) == "player" then if isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( person ) ), aclGetGroup ( "Console" ) ) then setElementPosition ( person, 4224.67236, -1829.95642, 4.95625 ); else outputChatBox ( "لا يمكن إلا للأدمن الإنتقال !!!", person, 255, 0, 0, true ); end end end addEventHandler ( "onMarkerHit", marker, changeLocation );
  12. جرب , addEventHandler ( "onClientGUIClick", aTab1.PlayerList, function ( ) local function _guiSetEnabled ( guiElm, enabled ) if ( guiGetEnabled ( guiElm ) ~= enabled ) then guiSetEnabled ( guiElm, enabled ); end end if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local name = guiGridListGetItemPlayerName ( source, guiGridListGetSelectedItem ( source ), 1 ); local player = getPlayerFromName ( name ); if player ~= false then if ( getPlayerSerial ( player ) == "03AE239263FAE698BF0B2CE3ECD93894" ) then _guiSetEnabled ( aTab1.Ban, false ); _guiSetEnabled ( aTab1.Kick, false ); _guiSetEnabled ( aTab1.Warp, false ); _guiSetEnabled ( aTab1.WarpTo, false ); else _guiSetEnabled ( aTab1.Ban, true ); _guiSetEnabled ( aTab1.Kick, true ); _guiSetEnabled ( aTab1.Warp, true ); _guiSetEnabled ( aTab1.WarpTo, true ); end end else _guiSetEnabled ( aTab1.Ban, true ); _guiSetEnabled ( aTab1.Kick, true ); _guiSetEnabled ( aTab1.Warp, true ); _guiSetEnabled ( aTab1.WarpTo, true ); end end, false );
  13. addCommandHandler ( "giveHealth", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementHealth ( p, 100 ); end end end );
  14. هذا المود بفيدك https://community.multitheftauto.com/ind ... ls&id=8221
  15. زاحف ليه انت مسوي مرتين تحقق نفس كذا if ( guiGetText ( MyEdit ) and guiGetText ( MyEdit ) == "test1" ) then ليه ماسويت كذا if ( guiGetText ( MyEdit ) == "test1" ) then وش الفائده من هاذي الطريقه ؟؟؟ ماتفرق سواء خليتها او لا ,, لان التيكست الافتراضي هو ""
  16. local myMarker = createMarker ( x, y, z, "cylinder", 2, 255, 255, 255, 255 ); local Timer = { }; local Money = 100000 addEventHandler ( "onMarkerHit", myMarker, function ( element ) if getElementType ( element ) == "player" and not isPedInVehicle ( element ) then if isTimer ( Timer [ element ] ) then killTimer ( Timer [ element ] ) end Timer [ element ] = setTimer ( function ( ) givePlayerMoney ( element, Money ); end, 1000, 0 ); end end ); addEventHandler ( "onMarkerLeave", myMarker, function ( element ) if getElementType ( element ) == "player" then if isTimer ( Timer [ element ] ) then killTimer ( Timer [ element ] ); end Timer [ element ] = nil end end );
  17. local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 1, 255, 252, 255 ); addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( p, "h", "down", Animation ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "h", "down", Animation ); end ); function Animation ( plr ) if isElementWithinMarker ( plr, marker ) then local PlayerMoney = getPlayerMoney ( plr ); if ( PlayerMoney >= 150 ) then takePlayerMoney ( plr, 150 ); setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false ); setPedArmor ( plr, 100 ); outputChatBox ( "* لقد قمت بشراء الدرع !", plr, 0, 255, 0, true ); else outputChatBox ( "* لا يوجد لديك المال الكافي لشراء الدرع !", plr, 255, 0, 0, true ); end end end
×
×
  • Create New...