Jump to content

Mr-M3AND

Members
  • Posts

    312
  • Joined

  • Last visited

Everything posted by Mr-M3AND

  1. function spawnSanchez() local spawnthecar = createVehicle ( 468, 1543.4465332031, -1724.4774169922, 12.546875 ) warpPedIntoVehicle(source, spawnthecar) end local myMarker = createMarker( 1543.4465332031, -1724.4774169922, 12.546875 , "cylinder", 2.0, 250, 250, 250, 200, getRootElement() ) function MarkerHit ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then outputChatBox ( getPlayerName(hitPlayer) .. " Entered a Died Marker" ) end end function createSpawnWindow(hitPlayer) if hitPlayer == localPlayer then windowSpawncar = guiCreateWindow(0.36, 0.70, 0.26, 0.29, "", true) guiWindowSetSizable(windowSpawncar, false) btnSancheZ = guiCreateButton(0.05, 0.12, 0.87, 0.14, "1: Sanchez", true, windowSpawncar) local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 10) guiSetFont(btnSancheZ, font0_PetitFormalScript) guiSetProperty(btnSancheZ, "NormalTextColour", "FFFFFFFF") btnVoodoo = guiCreateButton(0.05, 0.39, 0.87, 0.14, "2: Voodoo", true, windowSpawncar) guiSetFont(btnVoodoo, font0_PetitFormalScript) guiSetProperty(btnVoodoo, "NormalTextColour", "FFFFFFFF") btnCaddy = guiCreateButton(0.06, 0.67, 0.86, 0.14, "3: Caddy", true, windowSpawncar) guiSetFont(btnCaddy, font0_PetitFormalScript) guiSetProperty(btnCaddy, "NormalTextColour", "FFFFFFFF") guiSetVisible( windowSpawncar, true ) end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) addEventHandler( "onClientMarkerHit", getRootElement(), createSpawnWindow)
  2. try function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end GUIEditor = { checkbox = {}, staticimage = {}, label = {}, button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(542, 254, 348, 92, "No Deathmatch Mode", false) centerWindow ( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(10, 25, 283, 15, "You can enable or disable 'No Deathmatch' mode.", false, GUIEditor.window[1]) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 50, 34, 26, "icon.png", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(49, 52, 234, 24, "Enable / Disable No Deathmatch Mode", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(303, 52, 31, 25, "X", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) addEventHandler("onClientGUIClick", GUIEditor.button[1], onGuiClick,false) addEventHandler("onClientGUIClick",GUIEditor.checkbox[1], checkBox, false) end ) addCommandHandler("nodm", function() guiSetVisible(GUIEditor.window[1], true) showCursor(true) end ) function onGuiClick() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end function checkBox() if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then setElementData(localPlayer, "invincible", true) addEventHandler("onClientRender", root, dxRectangle) else setElementData(localPlayer, "invincible", false) removeEventHandler( "onClientRender", root, dxRectangle ) end end addEventHandler ( "onClientPlayerDamage",localPlayer, function () if getElementData(source,"invincible") then cancelEvent() end end ) function dxRectangle() dxDrawRectangle(84, 475, 220, 32, tocolor(0, 0, 0, 153), false) dxDrawImage(90, 479, 27, 24, "icon.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("No Deathmatch Mode Enabled", 123, 485, 294, 497, tocolor(255, 255, 255, 255), 1.00, "arial", "left", "top", false, false, false, false, false) end function disableWeaponOnGodMod (prev,new) if getElementData(localPlayer, "invincible") then setPedWeaponSlot(localPlayer, 0) toggleControl ( "aim_weapon", false) toggleControl ( "vehicle_fire", false) toggleControl ( "fire", false) else toggleControl ( "aim_weapon", true) toggleControl ( "vehicle_fire", true) toggleControl ( "fire", true) end end addEventHandler ( "onClientRender", root, disableWeaponOnGodMod )
  3. ترا مافهمت سؤالك اذا تقصد قائمة السؤال والجواب شوفها بالجدول بسطر 1 Q_A = { {"جواب", "سؤال"}, {"جواب", "سؤال"} } تحط السؤال وتحط جنبه الاجابه ع السؤال
  4. Q_A = { {"هل ألادمنيين في ألسيرفر متفاعلين او لا ؟", "نعم متفاعلين وهذا قرار أداري"}, {"كيف يمكنني عمل حساب", "إسأل احد الادمنيين وسوف يخبرك كيف"} } local screenW, screenH = guiGetScreenSize() Wind = guiCreateWindow((screenW - 382) / 2, (screenH - 536) / 2, 382, 536, "=[ الادمنيية واسئلتهم ]=", false) guiWindowSetSizable(Wind, false) guiSetProperty(Wind, "CaptionColour", "FFFF0000") guiSetVisible(Wind,false) grid = guiCreateGridList(10, 25, 360, 378, false, Wind) guiGridListAddColumn(grid, "# السؤال", 0.9) Question_Edit = guiCreateEdit(10, 422, 360, 41, "هنا الاجوبة التي تخص الادمن", false, Wind) guiSetProperty(Question_Edit, "NormalTextColour", "FFFF0000") guiEditSetReadOnly(Question_Edit, true) close = guiCreateButton(116, 498, 109, 22, "=[ إغلاق ]=", false, Wind) guiSetFont(close, "default-bold-small") guiSetProperty(close, "NormalTextColour", "FF00FFFC") for i,GR in ipairs(Q_A) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,GR[1],false,false) guiGridListSetItemData(grid,row,1, GR[2]) guiGridListSetItemColor(grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end local key = "F12" function OpenWindow() if guiGetVisible(Wind) == false then guiSetVisible(Wind, true) showCursor(true) else guiSetVisible(Wind, false) showCursor(false) end end bindKey(key,"down",OpenWindow) addEventHandler("onClientGUIClick",root, function () if source == close then if ( guiGetVisible(Wind) == false ) then end guiSetVisible ( Wind, false ) showCursor(false) guiSetInputEnabled(false) end end ) function click () if source == grid then guiSetText (Question_Edit, "هنا الاجوبة التي تخص الادمن" ) end local row,col = guiGridListGetSelectedItem(grid) if ( row and col and row ~= -1 and col ~= -1 ) then local Answers = guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) guiSetText (Question_Edit, Answers ) end end addEventHandler("onClientGUIClick", root, click )
  5. سطر واحد خله كذا screenX, screenY = guiGetScreenSize()
  6. جرب creenX, screenY = guiGetScreenSize() topChat = { {"", 255, 50, 50}, } setTimer(function() table.remove(topChat, 1) end, 10000, 1) addEventHandler("onClientPreRender",root, function() dxDrawRectangle(screenX/4+(screenX/16),screenY*747/768,screenX/2-(screenX/16),21.0,tocolor(0,0,0,150),false) local x, y, z = getElementPosition(localPlayer) dxDrawText(" [Welcome]",screenX/4+(screenX/16),screenY*747/768,screenX*960/1280,screenY*768/768,tocolor(0,0,250),1.0,"default-bold","left","center",false,false,false, true) if #topChat >= 8 then table.remove(topChat, 1) end for k, v in ipairs(topChat) do dxDrawRectangle(screenX/4+(screenX/16),screenY*747/768-(k*20) ,screenX/2-(screenX/16),20.0,tocolor(0,250,0,150),false) dxDrawText(" "..v[1],screenX/4+(screenX/16),screenY*744/768-(k*40) ,screenX*960/1280,screenY*768/768,tocolor(v[2],v[3],v[4],255),1.0,"default-bold","left","center",false,false,false, true) end end ) function outputTopChat(message, r, g, b) table.insert(topChat, { message, r, g, b }) local thetime = getRealTime() outputConsole("["..string.format("%.2d:%.2d:%.2d", thetime.hour, thetime.minute, thetime.second).."] "..message:gsub("#%x%x%x%x%x%x", "")) setTimer(function() table.remove(topChat, 1) end, 60000, 1) end addEvent("outputTopChat", true) addEventHandler("outputTopChat", root, outputTopChat)
  7. Mr-M3AND

    Help plis

    font name : Thing Press download : http://dl.1001fonts.com/thing-press.zip
  8. طبعا مو معرف لانه مثال تضيفه لكودك وتعرفه
  9. setTimer( function () local r, g, b = math.random(255), math.random(255), math.random(255) guiGridListSetItemColor ( gridlist, row , 1, r, g, b ) end, 1000, 0) row = ? gridlist = ? طيب افرض ان الرجال عنده 4 رو كيف تبيه يلون واحد ويخلي 3 لازم تستخدم اللوب لا مايحتاج لوب الكود يلون كل الرو بالقريد ليست row يصير تلون الرو بالحاله اذا استبدلت كلمة بـ رقم 0 = الرو الاول مثلا تبي تلون الرو الرابع تحط رقم 3
  10. setTimer( function () local r, g, b = math.random(255), math.random(255), math.random(255) guiGridListSetItemColor ( gridlist, row , 1, r, g, b ) end, 1000, 0)
  11. -- Client -- local weapon = {sound = {}} addEvent("onCreateWeaponVehicle", true) addEventHandler("onCreateWeaponVehicle", root, function (weaponID) local theVehicle = source if not weaponID then weaponID= 38 end if (getElementType(theVehicle) == "vehicle") and not (weapon[theVehicle]) then local x, y, z = getElementPosition(theVehicle) weapon[theVehicle] = createWeapon(weaponID, x, y, z) attachElements(weapon[theVehicle], theVehicle, -0.13, -0.54, 1.03, 0, 0, 90) setElementData(theVehicle, "VehicleMG", weapon[theVehicle]) setElementAlpha(weapon[theVehicle], 0) setWeaponClipAmmo(weapon[theVehicle], 99999) end end) addEvent("onRemoveWeaponVehicle", true) addEventHandler("onRemoveWeaponVehicle", root, function ( ) local theVehicle = source if (getElementType(theVehicle) == "vehicle") and (weapon[theVehicle]) then destroyElement (weapon[theVehicle]) end end) addEvent("onWeaponVehicleFiring", true) addEventHandler("onWeaponVehicleFiring", root, function( ) local theVehicle = source if (theVehicle) and (weapon[theVehicle]) then setWeaponState(weapon[theVehicle], "firing") local x, y, z = getElementPosition(theVehicle) local xm, ym, zm = getElementPosition(weapon[theVehicle]) if not (weapon.sound[theVehicle]) then weapon.sound[theVehicle] = playSound3D("minigun.wav", xm, ym, zm, true) setSoundMaxDistance(weapon.sound[theVehicle], 100) setSoundEffectEnabled(weapon.sound[theVehicle], "gargle", true) attachElements(weapon.sound[theVehicle], weapon[theVehicle]) end end end) addEvent("onWeaponVehicleReady", true) addEventHandler("onWeaponVehicleReady", root, function ( ) local theVehicle = source if (theVehicle) and (weapon[theVehicle]) then setWeaponState(weapon[theVehicle], "ready") if (weapon.sound[theVehicle]) then stopSound(weapon.sound[theVehicle]) weapon.sound[theVehicle] = nil end end end) bindKey("r", "up", function( ) local theVehicle = getPedOccupiedVehicle(localPlayer) if (theVehicle) and (getVehicleController(theVehicle) == thePlayer) then setWeaponState(weapon[theVehicle], "reloading") end end) addEventHandler("onClientWeaponFire", getRootElement(), function (element) local theVehicle = getPedOccupiedVehicle(localPlayer) if (theVehicle) and (weapon[theVehicle]) then if (element == theVehicle) then cancelEvent() end end end) addEventHandler("onElementDestroy", root, function ( ) local theVehicle = source if (getElementType(theVehicle) == "vehicle") and (weapon[theVehicle]) then destroyElement (weapon[theVehicle]) weapon[theVehicle] = nil setElementData(theVehicle, "VehicleMG", false) end end) -- Server -- function onEnter(thePlayer) local theVehicle = getPedOccupiedVehicle(thePlayer) if ( getElementModel ( theVehicle ) == 600 ) then if (getVehicleController(theVehicle) == thePlayer) then triggerClientEvent("onCreateWeaponVehicle", theVehicle, id) end end end addEventHandler ( "onVehicleEnter", getRootElement(), onEnter ) function onExit(thePlayer) if ( getElementModel ( source ) == 600 ) then triggerClientEvent("onRemoveWeaponVehicle", source ) end end addEventHandler ( "onVehicleExit", getRootElement(), onExit ) addEventHandler("onResourceStart", root, function( ) for i, player in ipairs(getElementsByType("player")) do bindKey(player, "vehicle_secondary_fire", "down", keyFire) bindKey(player, "vehicle_secondary_fire", "up", keyStopFire) end end) function keyFire(source) local theVehicle = getPedOccupiedVehicle(source) if (theVehicle) and (getVehicleController(theVehicle) == source) then triggerClientEvent("onWeaponVehicleFiring", theVehicle) end end function keyStopFire(source) local theVehicle = getPedOccupiedVehicle(source) if (theVehicle) and (getVehicleController(theVehicle) == source) then triggerClientEvent("onWeaponVehicleReady", theVehicle) end end
  12. RAR الملف بصيغه ZIP لازم يكون بصيغه
  13. for _, d in pairs ( modelki ) do local x, y, z, rx, ry, rz, int, dim, skin = unpack(d) addEventHandler ( "onResourceStart", resourceRoot, function ( ) local ped = createPed ( skin, x, y, z ) setElementRotation ( ped, rx, ry, rz ) setElementInterior ( ped, int ) setElementDimension ( ped, dim ) setElementFrozen ( ped, true ) setElementData ( ped, "modelka", true ) end ) local marker = createMarker ( x + 1, y, z - 1, "cylinder", 1, 255, 51, 255, 50 ) addEventHandler ( "onMarkerHit", marker, function ( hitMarker ) outputChatBox ( "test" ) if ( isElement ( hitMarker ) and getElementType ( hitMarker ) == "player" ) then outputChatBox ( "test1" ) podejmijPrace ( hitMarker, skin ) end end ) end
  14. Client side #165 GUIEditor = { button = {} } remove it ^ Server side #66 addEvent("veh",true) addEventHandler("veh",root, function () local p = getLocalPlayer() local x,y,z = getElementPosition (p) vehicle = createVehicle (448 , x+5, y+5, z) ) to addEvent("veh",true) addEventHandler("veh",root, function () local p = getLocalPlayer() local x,y,z = getElementPosition (p) vehicle = createVehicle (448 , x+5, y+5, z) end )
  15. -- Client -- GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(308, 173, 399, 425, "Pizza ", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) --I setted as invisible GUIEditor.label[1] = guiCreateLabel(14, 31, 365, 63, " Well Stacked Pizza Co.", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 255, 255, 2) GUIEditor.label[2] = guiCreateLabel(44, 111, 320, 124, " Welcome to the Well Stacked Pizza Co.\n You can employ now as a pizzaboy!\n As a pizzaboy you have to deliver pizza's\n throughout the town.\n You will get money for that.\n\n For help type /pizzahelp", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "clear-normal") GUIEditor.button[1] = guiCreateButton(96, 247, 215, 42, "Accept ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8FFFF00") GUIEditor.button[2] = guiCreateButton(118, 307, 164, 36, "Leave ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "C8FD0802") GUIEditor.button[3] = guiCreateButton(122, 368, 150, 32, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then closeWind() triggerServerEvent("acceptTheJob", localPlayer, "Enter") elseif source == GUIEditor.button[2] then closeWind() triggerServerEvent("acceptTheJob", localPlayer, "Leave") elseif source == GUIEditor.button[3] then closeWind() end end) function closeWind() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end pizzaMarker = createMarker(-1721.0263671875, 1355.9541015625, 6.1805019378662, "cylinder", 1.25, 255, 255, 0, 180) addEventHandler("onClientMarkerHit", pizzaMarker, function(player) if player == localPlayer and not isPedInVehicle(player) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end) --second gui GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() win2 = guiCreateWindow(314, 135, 393, 492, "Pizza GUI", false) guiWindowSetSizable(win2, false) GUIEditor.label[1] = guiCreateLabel(26, 40, 332, 96, "How many Pizza's you\nwant to deliver?", false, win2) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 236, 151, 18) button1 = guiCreateButton(35, 143, 142, 57, "1", false, win2) guiSetFont(button1, "sa-header") guiSetProperty(button1, "NormalTextColour", "FFAAAAAA") button2 = guiCreateButton(35, 219, 142, 58, "3", false, win2) guiSetFont(button2, "sa-header") guiSetProperty(button2, "NormalTextColour", "FFAAAAAA") button3 = guiCreateButton(205, 217, 147, 60, "4", false, win2) guiSetFont(button3 , "sa-header") guiSetProperty(button3, "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(204, 145, 148, 56, "2", false, win2) guiSetFont(GUIEditor.button[4], "sa-header") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(37, 295, 140, 58, "5", false, win2) guiSetFont(GUIEditor.button[5], "sa-header") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(205, 294, 147, 59, "6", false, win2) guiSetFont(GUIEditor.button[6], "sa-header") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.button[7] = guiCreateButton(42, 392, 300, 39, "Close", false, win2) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") guiSetVisible(win2,false) end ) pizzacount = 0 addEventHandler("onClientGUIClick",root, function () if source == button1 then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza" ,localPlayer,"1 Pizza") pizzacount = pizzacount+1 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == GUIEditor.button[4] then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza2",localPlayer,"2 Pizza") pizzacount = pizzacount+2 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == button2 then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza3",localPlayer,"3 Pizza") pizzacount = pizzacount+3 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == button3 then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza4",localPlayer,"4 Pizza") pizzacount = pizzacount+4 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == GUIEditor.button[5] then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza5",localPlayer,"5 Pizza") pizzacount = pizzacount+5 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == GUIEditor.button[6] then if pizzacount < 6 then closeWindow() triggerServerEvent("getPizza6",localPlayer,"6 Pizza") pizzacount = pizzacount+6 else outputChatBox("PIZZA JOB : Number of Pizza's exceed the limit!",255,255,0) end elseif source == GUIEditor.button[7] then closeWindow() end end ) function closeWindow() guiSetVisible(win2,false) showCursor(false) end ----------- vehicle gui---------------------------------------------------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() vehwin = guiCreateWindow(390, 196, 312, 261, "Vehicle Window", false) guiWindowSetSizable(vehwin, false) vehbut1 = guiCreateButton(28, 51, 251, 69, "Spawn Pizzaboy", false, vehwin) guiSetFont(vehbut1, "sa-header") guiSetProperty(vehbut1, "NormalTextColour", "FFFBFE00") vehbut2 = guiCreateButton(30, 162, 249, 66, "Close", false, vehwin) guiSetFont(vehbut2, "sa-header") guiSetProperty(vehbut2, "NormalTextColour", "FFAAAAAA") guiSetVisible(vehwin,false) end ) marker2 = createMarker(-1678.615234375, 1409.3828125, 6.1794281005859, "cylinder",1.25, 255, 255, 0, 180) addEventHandler("onClientMarkerHit", marker2, function(player) if player == localPlayer and not isPedInVehicle(player) then guiSetVisible(vehwin, true) showCursor(true) end end) function closeWine() guiSetVisible(vehwin,false) showCursor(false) end addEventHandler("onClientGUIClick",root, function () if source == vehbut1 then triggerServerEvent("veh",localPlayer) closeWine() elseif source == vehbut2 then closeWine() end end) --------------------------------------------------------------------------------------------------------- marker4 = createMarker(8184.484375, -1822.6887207031, 51.855865478516, "cylinder",1.25,255,255,0) addEventHandler("onClientMarkerHit", marker4, function(player) if player == localPlayer and not isPedInVehicle(player) then guiSetVisible(win2, true) showCursor(true) end end) -- ------------------------------------------------------------------------------------------------------------- marker3 = createMarker(-1685.2763671875, 1401.8896484375, 8.1815948486328, "arrow", 1.25,255,255,0 ) function teleportPlayer(source) setElementPosition(source,8185,-1814,53,true) end addEventHandler("onClientMarkerHit", marker3,teleportPlayer) --------------------------------------------------------------------------------------------------------------------- marker5 = createMarker(8186.6630859375, -1817.7219238281, 53.855865478516, "arrow",1.25,255,255,0) function teleportPlayer1(source) setElementPosition(source,-1687.0810546875, 1403.787109375, 7.1788845062256,true) end addEventHandler("onClientMarkerHit", marker5,teleportPlayer1) ----------------------------------------------------------------------------------------------------------------- pizzaguy = createPed(155, -1720.0400390625, 1356.6455078125, 7.1875, 121.70565795898) setElementFrozen(pizzaguy, true) addEventHandler("onClientPedDamage", pizzaguy, cancelEvent) pgboy = createPed(155, -1677.861328125, 1410.26953125, 7.1853160858154, 141.66812133789) setElementFrozen(pgboy, true) addEventHandler("onCLientPedDamage", pgboy, cancelEvent) createBlip(-1723.74, 1359.68, 6.18, 29, 2, 0, 0, 0, 255, 0, 200)
  16. اي تقدر وهذي طريقة كلمة تكتبها باف 8 تخلي السرعه تتغير لتيم محدد سويتها لك تيمين واكتب الكلمة مره ثانية ترجع للسرعه الاصلية اللي هي 1 -- Client -- addEvent("SetPoliceSpeed", true) addEventHandler("SetPoliceSpeed", root, function( ) if getGameSpeed() == 1 then setGameSpeed(3) else setGameSpeed(1) end end ) addEvent("SetCriminalSpeed", true) addEventHandler("SetCriminalSpeed", root, function( ) if getGameSpeed() == 1 then setGameSpeed(2) else setGameSpeed(1) end end ) ) -- Server -- function SetSpeed ( ) local policeTeam = getTeamFromName ("Police") if (policeTeam) then local police = getPlayersInTeam (policeTeam) for k, p in ipairs (police) do triggerClientEvent(p, "SetPoliceSpeed", p) end end local criminalTeam = getTeamFromName ("Criminal") if (criminalTeam) then local Criminal = getPlayersInTeam (criminalTeam) for k, c in ipairs (Criminal) do triggerClientEvent(c, "SetCriminalSpeed", c) end end end addCommandHandler ("SetGameSpeed", SetSpeed)
  17. الله يعافيك ويوفق الجميع يارب
  18. الله يبيض وجهك بس بسألك كيف خليت الأعلام تجي قبل أسامي الأعبين + طلع العلم شوي رايح يمين .. الاعلام تجي قبل اسامي اللاعبين call(getResourceFromName("scoreboard"),"scoreboardSetColumnPriority","From", 1 ) + تقدر ترجع العلم شوي بنفس الكود اللي عطيتك تحصل هذي topX+theX+5 خله كذا topX+theX+4 او topX+theX+3
  19. تقصد تبيها تصير نفس كذا؟ إيه تماماً افتح ملف scoreboard > dxscoreboard_client استبدل الكود بسطر 730 بهذا الكود dxDrawImage ( topX+theX+5, y+2, 22, 11, content.src, content.rot, content.rotOffX, content.rotOffY, content.color, drawOverGUI ) وبالنسبه لكودك هذا setElementData(source,"Country",{type="image",src=":admin/client/images/flags/"..flag..".png",height=5,width=10}) height=5 width=10 لا تغير فيهم شي
  20. تقصد تبيها تصير نفس كذا؟
  21. addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function( ) call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Country", 5,85) end )
  22. طلبك الاول setElementCollidableWith طلبك الثاني #Event onVehicleEnter onVehicleExit #function getElementModel unbindKey bindKey
×
×
  • Create New...