Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. Client: GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } windowjob9 = guiCreateWindow(253, 137, 304, 284, "", false) guiWindowSetSizable(windowjob9, false) SWATLabel = guiCreateLabel(65, 29, 264, 40, "SWAT Gear", false, windowjob9) guiSetFont(SWATLabel, "sa-gothic") SwatMemo2 = guiCreateMemo(304, 180, 0, 20, "", false, windowjob9) SwatMemo3 = guiCreateMemo(10, 85, 285, 104, "Arrest People For Money, RP Raids! And RP Riot Control!!", false, windowjob9) SwatButton = guiCreateButton(10, 200, 285, 51, "Take The Job!", false, windowjob9) guiSetFont(SwatButton, "sa-header") guiSetVisible(windowjob9, false) local marker7 = createMarker( 1671.845703125, -1705.2421875, 15.609375, "Cylinder", 2, 6, 183, 248, 153) function Medicjob9(hitElement) if getElementType(hitElement) == "player" then if not guiGetVisible(windowjob9) then guiSetVisible(windowjob9, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker7, Medicjob9) function Medicjobleave9(leaveElement) if getElementType(leaveElement) == "player" then if guiGetVisible(windowjob9) then guiSetVisible(windowjob9, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker7, Medicjobleave9) function joinTeam9() triggerServerEvent("setSWAT",localPlayer) guiSetVisible(windowjob9, false) showCursor(false) end addEventHandler("onClientGUIClick", SwatButton , joinTeam9, false)
  2. saya rigaltha thx all https://community.multitheftauto.com/index.php?p= ... ls&id=6359
  3. https://community.multitheftauto.com
  4. 3andi il script hadha n7ab na3rf kifa n5adam fadecamera wa howa script client ? myShader = dxCreateShader( "texture.fx" ) local x,y,z = 1911.2,-1776,12 ------ position local Marker = createMarker ( x, y, z, "cylinder", 5, 255, 0, 0, 150 ) local Blip = createBlipAttachedTo ( Marker, 12 ) function cleancar (player) local vehicle = getPlayerOccupiedVehicle ( player ) if vehicle then engineApplyShaderToWorldTexture( myShader, "vehiclegrunge256", vehicle ) engineApplyShaderToWorldTexture( myShader, "?emap*", vehicle ) outputChatBox ( "Your Welcome in Clean Car", vehicle, 0, 255, 255, true ) fadeCamera ( vehicle, false, 2.5, 0, 0, 0 ) setTimer ( fadeCamera, 2500, 1, vehicle, true, 2.5) end end addEventHandler("onClientMarkerHit", Marker, cleancar)
  5. Just habit nasel chkon 3ando server ????
  6. Y U SO RACIST? wasmass nice THX
  7. hhhhhhhhhhhhhhhhhh chof hadhi https://www.facebook.com/photo.php?fbid ... =1&theater
  8. *NEW V1.1.0* -Change tags (LS,SF,LV,SA) police tag no arabic -علامة الشرطة لا العربية (LS، SF، LV، SA) تغيير علامة الشرطة
  9. *NEW V1.1.0* -Change tags (LS,SF,LV,SA) police tag no arabic -علامة الشرطة لا العربية (LS، SF، LV، SA) تغيير علامة الشرطة
  10. na3rfo ama moch ili 7achti bih badhabat
  11. chay ma7abch ya5dam script orginal: https://community.multitheftauto.com/index.php?p= ... ls&id=3003 ena n7ab ken hadhi
  12. slm hadha il code 5dhito min script ama ma7abch ya5dem function drawHudItems() if not doDrawHUD then return end dxSetRenderTarget(hudrendertarg,true) local currBufferOff=40 local wantedlvl=getPlayerWantedLevel(localP) local ticks=getTickCount() if wantedlvl>0 then local flashide=true if wantedlvl~=lastwanlvl then if wantedlvl>lastwanlvl then doflash=true setTimer(function() doflash=false end,5000,1) end lastwanlvl=wantedlvl end if doflash or overrideFlash then flashhide=250>(ticks%500) end for i=1,6 do dxDrawImage(256-21*i,hudY,32,32,(i<=wantedlvl and flashhide) and 'images/wanted.png' or 'images/wanted_a.png',0,0,0,finalCol) end end local money=getPlayerMoney(localP) if lastmoney~=money then moneydiff=money-lastmoney moneychangetime=ticks moneychangestr=(moneydiff>0 and '+' or '')..tostring(moneydiff)..'$ ' moneychangecol=moneydiff>0 and moneyGreenCol or moneyRedCol moneydiffchangetime=ticks lastmoney=money end if ticks-moneychangetime<15000 then local moneystr=tostring(money)..'$ ' local moneycol=money>=0 and moneyGreenCol or moneyRedCol local moneyw=dxGetTextWidth(moneystr,1.2,'pricedown') dxDrawTextBordered(moneystr,math.min(221-moneyw,191),currBufferOff,256,currBufferOff+32,moneycol,2,1.2,'pricedown','center','top',false,false,false) if ticks-moneydiffchangetime<15000 then currBufferOff=currBufferOff+30 local moneychangew=dxGetTextWidth(moneychangestr,1,'pricedown') dxDrawTextBordered(moneychangestr,math.min(221-moneychangew,191),currBufferOff,256,currBufferOff+32,moneychangecol,2,1,'pricedown','center','top',false,false,false) end currBufferOff=currBufferOff+30 end if ticks-wepswitchtime<10000 then --weapon icons and ammo count local weapon=getPedWeapon(localP) if weapon==13 then weapon=12 end if weapon==45 then weapon=44 end dxSetRenderTarget(weptarg,true) local alpha=1 if ticks-wepswitchtime>8000 then alpha=1-(ticks-wepswitchtime-8000)/2000 end if wslot>1 and wslot<10 then local ammo=' '..tostring(getPedTotalAmmo(localP)) local clip=0 local ammow=dxGetTextWidth(ammo,1.2,'pricedown') if not (weapon==25 or (weapon>32 and weapon<37) or wslot==8) then clip=getPedAmmoInClip(localP) local clipw=dxGetTextWidth(clip,1.2,'pricedown')+5 dxDrawTextBordered(clip,236-ammow-clipw,0,256,currBufferOff+32,clipCol,2,1.2,'pricedown','left','top',false,false,false) end dxDrawTextBordered(ammo-clip,236-ammow,0,256,currBufferOff+32,ammoCol,2,1.2,'pricedown','left','top',false,false,false) currBufferOff=currBufferOff+32 else currBufferOff=currBufferOff+16 end dxDrawImage(0,32,256,128,'images/'..weapon..'.png',0,0,0,tocolor(255,255,255,255*alpha)) dxSetRenderTarget(hudrendertarg) dxDrawImage(0,currBufferOff-32,256,256,weptarg,0,0,0,normCol) end dxSetRenderTarget() dxDrawImage(sx-hudX-256,hudY,256,300,hudrendertarg,0,0,0,finalCol,posGUI) end
  13. wa ena mkasar rasi ma3arftch chnawa il problem wa howa tla3 min isem marker
  14. I3AYCH 5OYA ama chnawa il line ili badalthom ala5ter mazelo barcha chn3awed kif hadhoma
  15. behi rit il client wa server il thaniya ki n7otha twarili il panel mta3 il client wa server lola
  16. script hadha ispawn karahba bil panel Clent: Wnd = guiCreateWindow ( 0.4, 0.25, 0.25, 0.5, "Police Vehicles", true ) guiSetAlpha( Wnd, 100 ) button = guiCreateButton ( 0.01, 0.8, 0.99, 0.15, "Close", true, Wnd ) label = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "Double Click Vehicle to take it.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) vehicles = { {"Patriot", 470}, {"Police Ranger", 599}, {"Mesa", 500}, {"Shanchez", 486}, } grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Wnd) guiGridListAddColumn(grid, "Vehicles", 0.85) for i,veh in ipairs(vehicles) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(veh[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(veh[2])) end function use() local row, col = guiGridListGetSelectedItem(grid) if (row and col and row ~= -1 and col ~= -1) then local model = tonumber(guiGridListGetItemData(grid, row, 1)) if model ~= "" then triggerServerEvent("CreVehice1s", localPlayer, model) end end end addEventHandler("onClientDoubleClick", root, use, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) function showGUI1s() guiSetVisible(Wnd,true) showCursor(true) end addEvent("showGUI1s",true) addEventHandler("showGUI1s", getRootElement(), showGUI1s) Server: markerp = createMarker( 193.5, 1919.2, 16.7, "cylinder", 2, 113, 132, 50, 170 ) marker2p = createMarker( 202.5, 1919.2, 16.7, "cylinder", 2, 113, 132, 50, 170 ) marker3p = createMarker( 211.5, 1919.2, 16.7, "cylinder", 2, 113, 132, 50, 170 ) marker4p = createMarker( 220.5, 1919.2, 16.7, "cylinder", 2, 113, 132, 50, 170 ) local vehicles = { } function spawnVehP ( id ) local theTeam = getPlayerTeam ( source ) local theTeamName = getTeamName ( theTeam ) if ( theTeamName == "Soldier" ) then local x, y, z = getElementPosition ( source ) if isElement ( vehicles [ source ] ) then destroyElement ( vehicles [ source ] ) end vehicles [ source ] = createVehicle ( id, x, y, z + 1 ) setVehicleColor ( vehicles [ source ], getTeamColor ( theTeam ) ) warpPedIntoVehicle ( source, vehicles [ source ] ) else outoutChatBox ( "Only police agents and FBI can get free vehicles from here!", source, 255, 0, 0 ) end end addEvent ( "CreVehice1s", true ) addEventHandler ( "CreVehice1s", root, spawnVehP ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( vehicles [ source ] ) then destroyElement ( vehicles [ source ] ) vehicles [ source ] = nil end end ) function showGUIp ( hitPlayer ) if ( source == markerp or source == marker2p or source == marker3p or source == marker4p ) then local theTeam = getPlayerTeam ( hitPlayer ) local theTeamName = getTeamName ( theTeam ) if ( theTeamName == "Soldier" ) then triggerClientEvent ( hitPlayer, "showGUI1s", getRootElement(), hitPlayer ) end end end addEventHandler ( "onMarkerHit",root, showGUIp ) ama ki 7atit wa7da o5ra kifha ama badalt chwaya 7ajat ya5i mafhamtch 3alach twarili fil lola Clent: Wnd = guiCreateWindow ( 0.4, 0.25, 0.25, 0.5, "Police Vehicles", true ) guiSetAlpha( Wnd, 100 ) button = guiCreateButton ( 0.01, 0.8, 0.99, 0.15, "Close", true, Wnd ) label = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "Double Click Vehicle to take it.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) vehicles = { {"Cargobob", 548}, {"Maverick", 487}, } grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Wnd) guiGridListAddColumn(grid, "Vehicles", 0.85) for i,veh in ipairs(vehicles) do row = guiGridListAddRow(grid) -- guiGridListSetItemText(grid, row, 1, tostring(veh[1]), false, false) guiGridListSetItemData(grid, row, 1, tostring(veh[2])) end function use() local row, col = guiGridListGetSelectedItem(grid) if (row and col and row ~= -1 and col ~= -1) then local model = tonumber(guiGridListGetItemData(grid, row, 1)) if model ~= "" then triggerServerEvent("CreVehice2s", localPlayer, model) end end end addEventHandler("onClientDoubleClick", root, use, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) function showGUI2s() guiSetVisible(Wnd,true) showCursor(true) end addEvent("showGUI2s",true) addEventHandler("showGUI2s", getRootElement(), showGUI2s) Server: markerp = createMarker( 343.7, 1954.4, 20, "cylinder", 2, 0, 0, 0, 0 ) local vehicles = { } function spawnVehP ( id ) local theTeam = getPlayerTeam ( source ) local theTeamName = getTeamName ( theTeam ) if ( theTeamName == "Soldier" ) then local x, y, z = getElementPosition ( source ) if isElement ( vehicles [ source ] ) then destroyElement ( vehicles [ source ] ) end vehicles [ source ] = createVehicle ( id, x, y, z + 1 ) setVehicleColor ( vehicles [ source ], getTeamColor ( theTeam ) ) warpPedIntoVehicle ( source, vehicles [ source ] ) else outoutChatBox ( "Only police agents and FBI can get free vehicles from here!", source, 255, 0, 0 ) end end addEvent ( "CreVehice2s", true ) addEventHandler ( "CreVehice2s", root, spawnVehP ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( vehicles [ source ] ) then destroyElement ( vehicles [ source ] ) vehicles [ source ] = nil end end ) function showGUIp ( hitPlayer ) if ( source == markerp ) then if hasObjectPermissionTo(hitPlayer, "general.Soldier", false) then triggerClientEvent ( hitPlayer, "showGUI2s", getRootElement(), hitPlayer ) end end end addEventHandler ( "onMarkerHit",root, showGUIp ) wala daw5atni il 7kaya
  17. wa9tli ta7ra9 il karahba n7abha yo5rjo nar fi min zouz il 3ajali tilalin kima haka bidhabat: http://www.gtagaming.com/images/mods/carfire.jpg
  18. chay rani n7abo yo5rjo zou niran fil 3ajali tilalin kima fil taswira
×
×
  • Create New...