Kara

Members
  • Content Count

    255
  • Joined

  • Last visited

Community Reputation

33 Good

5 Followers

About Kara

  • Rank
    Red-Headed Stepchild
  • Birthday 20/06/1997

Details

  • Gang
    Dizaster
  • Location
    Libya

Recent Profile Visitors

1,352 profile views
  1. showPlayerHudComponent component: The component you wish to show or hide. Valid values are: ammo: The display showing how much ammo the player has in their weapon area_name: The text that appears containing the name of the area a player has entered armour: The display showing the player's armor breath: The display showing the player's breath clock: The display showing the in-game time health: The display showing the player's health money: The display showing how much money the player has radar: The bottom-left corner miniradar vehicle_name: The text that appears containing the player's vehicle name when the player enters a vehicle weapon: The display showing the player's weapon radio: The display showing the radio label wanted: The display showing the player's wanted level crosshair: The weapon crosshair and sniper scope all: All of the above at the same time show: Specify if the component should be shown (true) or hidden (false)
  2. سوي لما يضغط علي زر يحط صورة التصويبة الاصلية هذي التصويبة الاصلية
  3. خلاص سوي مثل ماقال عبد الكريم local account = getAccountName(accName )
  4. انا حاسس انه القريد ليست فيه لاعبين مب حسابات هوا مب موضح فقط .وانا مشيت علي احساسبي :]
  5. addEventHandler ( "onClientGUIClick", root, function ( ) local account = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) if ( source == button ) then if ( account ~= -1 ) then triggerServerEvent ( "Active", localPlayer, account ) end end end ) -- Server addEvent ( "Active", true ) addEventHandler ( "Active", root, function ( accName ) local account = getAccountName(getPlayerAccount(accName)) if account then aclGroupAddObject (aclGetGroup( 'اسم الرتبة'),"user."..account) end end )
  6. -- My Login Panel :D function interfaz( ) local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted", "radar" } for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end local x, y = guiGetScreenSize( ) showCursor( true ) main = guiCreateWindow( x/3.8, y/3.8, x/2.02, y/2, "Login Panel", false ) guiWindowSetMovable( main, false) guiWindowSetSizable( main, false) guiSetInputEnabled(true) guiCreateLabel( x/10, y/8, x/4, y/4, "Username:", false, main) guiCreateLabel( x/10, y/5, x/4, y/4, "Password:", false, main) loginU = guiCreateEdit( x/8, y/6.8, x/5, y/24, "", false, main) loginP = guiCreateEdit( x/8, y/4.5, x/5, y/24, "", false, main) guiEditSetMasked( loginP, true ) guiEditSetMaxLength( loginU, 10 ) guiEditSetMaxLength( loginP, 10 ) btnL = guiCreateButton( x/8, y/3.5, x/10, x/20, "Login", false, main) btnR = guiCreateButton( x/4, y/3.5, x/10, x/20, "Register", false, main) addEventHandler ("onClientGUIClick", btnL, function (us, pa) local us = guiGetText (loginU) local pa = guiGetText (loginP) triggerServerEvent ("loggin", getRootElement(), getLocalPlayer(), us, pa) end, false ) addEventHandler ("onClientGUIClick", btnR, function (us, pa) local us = guiGetText (loginU) local pa = guiGetText (loginP) triggerServerEvent ("register", getRootElement(), getLocalPlayer(), us, pa) end, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), interfaz ) function hideW () local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted", "radar" } for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, true ) end showCursor (false) guiSetVisible (main, false) guiSetInputEnabled(false) end addEvent ("Succes", true) addEventHandler ("Succes", getRootElement(), hideW)
  7. -- My Login Panel :D function interfaz( ) local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted", "radar" } for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end local x, y = guiGetScreenSize( ) showCursor( true ) main = guiCreateWindow( x/3.8, y/3.8, x/2.02, y/2, "Login Panel", false ) guiWindowSetMovable( main, false) guiWindowSetSizable( main, false) guiSetInputEnabled(main,true) guiCreateLabel( x/10, y/8, x/4, y/4, "Username:", false, main) guiCreateLabel( x/10, y/5, x/4, y/4, "Password:", false, main) loginU = guiCreateEdit( x/8, y/6.8, x/5, y/24, "", false, main) loginP = guiCreateEdit( x/8, y/4.5, x/5, y/24, "", false, main) guiEditSetMasked( loginP, true ) guiEditSetMaxLength( loginU, 10 ) guiEditSetMaxLength( loginP, 10 ) btnL = guiCreateButton( x/8, y/3.5, x/10, x/20, "Login", false, main) btnR = guiCreateButton( x/4, y/3.5, x/10, x/20, "Register", false, main) addEventHandler ("onClientGUIClick", btnL, function (us, pa) local us = guiGetText (loginU) local pa = guiGetText (loginP) triggerServerEvent ("loggin", getRootElement(), getLocalPlayer(), us, pa) end, false ) addEventHandler ("onClientGUIClick", btnR, function (us, pa) local us = guiGetText (loginU) local pa = guiGetText (loginP) triggerServerEvent ("register", getRootElement(), getLocalPlayer(), us, pa) end, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), interfaz ) function hideW () local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted", "radar" } for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, true ) end showCursor (false) guiSetVisible (main, false) guiSetInputEnabled(main,false) end addEvent ("Succes", true) addEventHandler ("Succes", getRootElement(), hideW)
  8. --للقيو استخدم هذه الفنكشنات + متغيرات guiGetPosition guiSetPosition
  9. كلامك يحكي شي وكودك يحكي شي لو تقصد الي يدخل البحر ينقله لي مكان محدد function waterCheck() vehicle = getPedOccupiedVehicle(localPlayer); if isElementInWater(vehicle) then setElementPosition(vehicle,201.71985, 1887.42810, 17.64806) setElementDimension(vehicle,0) end end setTimer(waterCheck,100,0)
  10. لوحتك ملخبطه انصحك سوي لوحه جديده wnd = guiCreateWindow(218, 135, 363, 422, "", false) guiSetVisible(wnd,false) wnd2 = guiCreateWindow(166,53,458,544,"قوانين السرفر",false) guiSetVisible(wnd2,false) user = guiCreateEdit(92, 39, 183, 27, "", false, wnd) GUIEditor_Edit[1] = guiCreateEdit(144,-140,5,5,"",false,wnd) pass = guiCreateEdit(92, 76, 183, 27, "", false, wnd) GUIEditor_Edit[2] = guiCreateEdit(144,-139,5,5,"",false,wnd) GUIEditor.label[2] = guiCreateLabel(26, 46, 76, 20, "Username :", false, wnd) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(26, 79, 76, 20, "Password :", false, wnd) guiSetFont(GUIEditor.label[3], "default-bold-small") log = guiCreateButton(187, 127, 88, 38, "Login", false, wnd) guiSetProperty(log, "NormalTextColour", "FFAAAAAA") reg = guiCreateButton(92, 127, 88, 38, "Register", false, wnd) guiSetProperty(reg, "NormalTextColour", "FFAAAAAA") gue = guiCreateButton(92, 169, 182, 27, "Guest", false, wnd) guiSetProperty(gue, "NormalTextColour", "FFAAAAAA") auto = guiCreateCheckBox(92, 111, 180, 16, "LoginAuto", true, false, wnd) rul = guiCreateButton(102, 202, 165, 18, "Rules", false, wnd) guiSetProperty(rul, "NormalTextColour", "FFAAAAAA") close2 = guiCreateButton(427,19,13,12,"x",false,wnd) GUIEditor_Memo[1] = guiCreateMemo(9,42,439,493,"\1-ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn",false,wnd2) playerList = guiCreateGridList(9, 225, 345, 174, false, wnd) labelm = guiCreateLabel(211, 397, 142, 15, "LoginPanel#ByMA[S]RIY", false, wnd) guiSetFont(labelm, "default-bold-small")
  11. القسم معبي من ذا ابحث بس
  12. addEventHandler("onClientGUIClick", resroot, function() if source == brgrbtn then triggerServerEvent("brgr", localPlayer) outputChatBox("لا تملك مال") elseif source == Button then outputChatBox("") elseif source == Button then outputChatBox("") elseif source == Button then outputChatBox("") elseif source == Button then outputChatBox("") end end ) سوي كذا للازرار
  13. addEvent("spawningVehicle", true) local groupName = '[ARMY]' local activeVehicles = {} local playersVehicles = {} local occupiedVehicles = {} local activeTimers = {} local Intruders = {} local function addVehicleToDestroyList(vehicleNumber) activeTimers[vehicleNumber] = setTimer( function(vehicleNumber) destroyElement(activeVehicles[vehicleNumber]) activeVehicles[vehicleNumber] = nil activeTimers[vehicleNumber] = nil for i,v in pairs(playersVehicles) do if v == vehicleNumber then playersVehicles[i] = nil break end end end, 30000, 1, vehicleNumber ) end local function removeVehicleFromDestroyList(vehicleNumber) if isTimer(activeTimers[vehicleNumber]) then killTimer(activeTimers[vehicleNumber]) activeTimers[vehicleNumber] = nil end end addEventHandler("spawningVehicle", root, function(model, planes) local poo = { {1529.85669, 25.99903, 42.6171}, {1529.85669, 25.99903, 42.6171} } local x, y, z = 0, 0, 0 local rx, ry, rz = 0, 0, 0 if planes then x, y, z = unpack(poo[math.random(#poo)]) rx, ry, rz = 0.3275146484375, 359.78839111328, 271.46984863281 else x, y, z = 1598.17749, -262.16455, 51.722 rx, ry, rz = 359.54382324219, 359.99975585938, 3.48193359375 end if playersVehicles[client] then destroyElement(activeVehicles[playersVehicles[client]]) removeVehicleFromDestroyList(playersVehicles[client]) playersVehicles[client] = nil end local vehicle = #activeVehicles + 1 activeVehicles[vehicle] = createVehicle(model, x, y, z, rx, ry, rz) setVehicleColor(activeVehicles[vehicle], 0, 0, 255) warpPedIntoVehicle(client, activeVehicles[vehicle]) addVehicleUpgrade(activeVehicles[vehicle], 1010) playersVehicles[client] = vehicle occupiedVehicles[vehicle] = nil end ) addEventHandler("onVehicleExit", root, function(player, seat) if seat == 0 then if playersVehicles[player] then addVehicleToDestroyList(playersVehicles[player]) occupiedVehicles[playersVehicles[player]] = nil else for i,v in pairs(activeVehicles) do if v == source then addVehicleToDestroyList(i) occupiedVehicles[i] = nil end end end end end ) addEventHandler("onVehicleEnter", root, function(player, seat) if seat == 0 then if playersVehicles[player] then removeVehicleFromDestroyList(playersVehicles[player]) occupiedVehicles[playersVehicles[player]] = true else for i,v in pairs(activeVehicles) do if v == source then removeVehicleFromDestroyList(i) occupiedVehicles[i] = true break end end end end end ) addEventHandler("onVehicleStartEnter", root, function(player, seat) for i,v in pairs(activeVehicles) do if v == source then if (getElementData(player, "Group") ~= "[ARMY]") then outputChatBox("This vehicle is only for "..groupName.." group!", player, 0, 0, 255) cancelEvent() else if seat == 0 and occupiedVehicles[i] then outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0) cancelEvent() end end break end end end ) addEventHandler("onVehicleExplode", root, function() for i,v in pairs(activeVehicles) do if v == source then removeVehicleFromDestroyList(i) activeVehicles[i] = nil occupiedVehicles[i] = nil setTimer(destroyElement, 2000, 1, source) for k,s in pairs(playersVehicles) do if i == s then playersVehicles[k] = nil break end end break end end end ) سيرفر
  14. ينفع ينحط في الكلينت لاكن بدون ارقمنت جررب buttons = { ['F1'] = true, ['F3'] = true, ['b'] = true, ['F4'] = true, ['F5'] = true, ['F6'] = true, ['F7'] = true, ['F9'] = true, ['p'] = true, ['h'] = true, } addEventHandler( 'onClientKey',root, function ( Player, button, prees ) if not getPlayerSerial () == 'A8DACEB58D5778E96830D652B8950384' then if prees and getElementDimension ( localPlayer ) == 30 then if buttons [ button ] then outputChatBox ( 'غير مصرح لك بفتح اللوحة',255,0,0 ) cancelEvent ( ) end end outputChatBox ( 'تم فتح اللوحة',0,255,0 ) end end )