Jump to content

DaminkO

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by DaminkO

  1. ابي الفانكشن حق التاجات فوق راس اللاعب يعني اذا انا ادمن يكتب فوق راسي أدمن
  2. ابي لوحة الادمن المحمية للهجولة
  3. انا مسوي checkbox ابي حين اضغط عليه يسويلي الوان عشوائية و مسوي checkbox يسوي هايدرولك وش هي الفنكشن حقها ؟؟
  4. السياره ماتجي في القرد لست
  5. --client local key = "o" GUIEditor = { checkbox = {}, label = {}, button = {}, window = {}, scrollbar = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 573) / 2, (screenH - 481) / 2, 573, 481, "نضام الإستئجار (لوحة التحكم)", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFB7A700") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(9, 32, 342, 403, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الأي دي", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم المركبة", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المركبة", 0.3) GUIEditor.button[1] = guiCreateButton(361, 42, 202, 47, "صنع مركبة", false, GUIEditor.window[1]) --1 GUIEditor.button[2] = guiCreateButton(361, 99, 202, 47, "ازالة مركبة", false, GUIEditor.window[1]) --2 GUIEditor.button[3] = guiCreateButton(361, 156, 202, 47, "اصلاح مركبة", false, GUIEditor.window[1]) --3 GUIEditor.button[4] = guiCreateButton(362, 213, 201, 47, "انتقال الى المركبة", false, GUIEditor.window[1]) --4 GUIEditor.button[5] = guiCreateButton(361, 270, 201, 47, "سحب المركبة", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(362, 325, 200, 20, "X", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(729, 208, 199, 15, "~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") GUIEditor.label[3] = guiCreateLabel(356, 356, 408, 84, "~~~~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 183, 167, 0) end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) Cars = { {"Infernus",411} } for Key, Value in ipairs(Cars) do local Row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, Row, 1, Value[1], false, false) guiGridListSetItemText(gridlist, Row, 2, Value[2], false, false) end addEventHandler ('onClientGUIClick',GUIEditor.button[1],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('spawn',localPlayer,id) end end,false) addEventHandler ('onClientGUIClick',GUIEditor.button[2],function () if ( guiGridListGetSelectedItem (gridlist) ~= -1 ) then local id = guiGridListGetItemText (gridlist,guiGridListGetSelectedItem (gridlist),2) triggerServerEvent('Destroy',localPlayer,id) end end,false) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[3] then triggerServerEvent("fix",localPlayer) end end) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[4] then triggerServerEvent("WarpToVehicle",localPlayer) end end) addEventHandler ("onClientGUIClick",root, function () if source == GUIEditor.button[5] then triggerServerEvent("warpVehicle",localPlayer) end end) --server nVehicle = {}, addEvent("spawn",true) addEventHandler("spawn",root,function (vehicleID) local x, y, z = getElementPosition (source) local _,_,r = getPedRotation (source) if isElement(nVehicle[source]) then destroyElement(nVehicle[source]) else nVehicle[source] = createVehicle (vehicleID, x, y, z+1, 0, 0,r) warpPedIntoVehicle (source,nVehicle[source] ) end addEvent("WarpToVehicle",true) addEventHandler("WarpToVehicle",root, function () warpPlayerIntoVehicle (source , nVehicle[source]) end ) addEvent("warpVehicle",true) addEventHandler("warpVehicle",root, function () x,y,z = getElementPosition(source) setElementPosition(nVehicle[source],x,y,z) end ) addEvent("fix",true) addEventHandler("fix",root, function () fixVehicle(nVehicle[source]) end ) end) addEvent("Destroy",true) addEventHandler("Destroy",root,function (vehicleID) destroyElement (nVehicle[source]) end)
  6. local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 378) / 2, 453, 378, "xX[Police Panel|لوحة شرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "9FFB0000") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(13, 40, 231, 314, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "xX[Player|اللاعب]Xx", 0.9) GUIEditor.button[1] = guiCreateButton(252, 47, 191, 42, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "9F0750F6") GUIEditor.button[2] = guiCreateButton(252, 167, 191, 42, "xX[Destroy|سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "9F0750F6") GUIEditor.label[1] = guiCreateLabel(260, 256, 173, 37, "By Am1N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 252, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.button[3] = guiCreateButton(394, 327, 29, 24, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "9FFB0000") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function
  7. ابي الفنكشن حق عمل مهمات ديربي او سباق سيارات و الللاعب الي يبقى في الديربي ياخذ فلوس و يخرج من الماب و يرجع مكان الديربي و السباق يوصل للماركر و تنتهي المهمة
  8. -- كلينت function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end addEvent("Level1",true) addEventHandler("Level1", root, function ( ) dxDrawTextOnElement(source,"Level 1",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Level2",true) addEventHandler("Level2", root, function ( ) dxDrawTextOnElement(source,"Level 2",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Level3",true) addEventHandler("Level3", root, function ( ) dxDrawTextOnElement(source,"Level 3",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Level4",true) addEventHandler("Level4", root, function ( ) dxDrawTextOnElement(source,"Level 4",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Level5",true) addEventHandler("Level5", root, function ( ) dxDrawTextOnElement(source,"Level 5",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Level6",true) addEventHandler("Level6", root, function ( ) dxDrawTextOnElement(source,"Level 6",1,20,0,0,255,255,1,"pricedown") end ) addEvent("HeadAdmin",true) addEventHandler("HeadAdmin", root, function ( ) dxDrawTextOnElement(source,"Head Admin",1,20,0,0,255,255,1,"pricedown") end ) addEvent("Console",true) addEventHandler("Console", root, function ( ) dxDrawTextOnElement(source,"Console",1,20,0,0,255,255,1,"pricedown") end ) --سيرفر function HelpF ( player ) p = getPlayerFromName ( player ) local Acc = getAccountName( getPlayerAccount ( p ) ) if isObjectInACLGroup("user."..Acc, aclGetGroup( Level 1 ) ) then triggerClientEvent( source, "Level1", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Level 2 ) ) then triggerClientEvent( source, "Level2", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Level 3 ) ) then triggerClientEvent( source, "Level3", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Level 4 ) ) then triggerClientEvent( source, "Level4", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Level 5 ) ) then triggerClientEvent( source, "Level5", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Level 6 ) ) then triggerClientEvent( source,"Level6", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Head.Admin ) ) then triggerClientEvent( source,"HeadAdmin", source) elseif isObjectInACLGroup("user."..Acc, aclGetGroup( Console ) ) then triggerClientEvent( source,"Console", source) end end
  9. يعني انا عندي تاق في الشات حين انا اتكلم في شات التيم يجي في شات العام
  10. كيف ما احط التاج يجي في الشات التيم؟
  11. ابي فنكشنات حق القروبات للهجولة و ابي حين يكتب اللاعب TeamColor يتغر لون السياره و TeamWarp سحب اللاعبين الي في القروب و TeamSkin سكن التيم
  12. ابي الفنكشن الي تجي فوق راس اللاعب رتبته
  13. مطلوب مودات حماية للسيرفرات
  14. local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 468) / 2, (screenH - 436) / 2, 468, 436, "xX[Police Panel | لوحة الشرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0012FE") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(274, 32, 172, 35, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC70009") GUIEditor.button[2] = guiCreateButton(274, 101, 172, 35, "xX[Destroy Vehicle | سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFC70009") GUIEditor.gridlist[1] = guiCreateGridList(14, 27, 235, 389, false, GUIEditor.window[1]) Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) GUIEditor.button[3] = guiCreateButton(377, 358, 19, 16, "", false, GUIEditor.gridlist[1]) GUIEditor.button[4] = guiCreateButton(286, 381, 172, 35, "xX[Close Window|اغلاق النافذة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFC70009") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[4] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) changeGridListItemToPlayersName = function ( GUIEditor.gridlist[1], Column) if GridList and Column then - if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end end end end end
  15. انا ما افهم في قواعد البيانات
  16. انا سوت مود الاملاك الخاصة و ابي اعطي الاملاك بلوحة وش هي الفنكشنات الللازمة
  17. مود حلو من شخص احلى واصل يا الكفؤ
  18. لا ابي الفنكشن الي يوم اضغط على زر تعطي الاملاك الخاصة
×
×
  • Create New...