-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
if you use - as a Button Name well say error But if You Use it in onClientGUIClick wont say anyting
-
Does This well Work ? https://wiki.multitheftauto.com/wiki/RemoveWorldModel
-
والله المشكله صعبه عليك وانا اخوك حيل متطورة الاوامر ذي ~
-
Edited Thank's Fhoode addEventHandler( "onClientGUIClick", root, function () if ( source == Lock-UnLock ) then if (isPedInVehicle ) then local playervehicle = getPedOccupiedVehicle(localPlayer) if(isVehicleLocked ( playervehicle )) then setVehicleLocked ( playervehicle, false ) outputChatBox ( "Your Vehicle UnLocked !",255, 0, 0, true ) else setVehicleLocked ( playervehicle, true ) outputChatBox( " Your Vehicle Locked !", 255, 0, 0 , true) end end end end )
-
i will say he better use marker and on MarkerHit or ClientMarkerHit whatever.
-
https://wiki.multitheftauto.com/wiki/Exe ... andHandler
-
Lol what hell with my eyes sorry for posting iam saw you code it's Correct i think you get all the Player needs
-
العفو + حيآك الله اكتب جنب موضوعك تم الافادة
-
Edited 2 addEvent('onPlayerReachCheckpoint', true) addEventHandler('onPlayerReachCheckpoint' , root, function(cp, time) if cp == 1 or cp == 3 or cp == 5 or cp == 7 or cp == 9 or cp == 11 or cp == 13 or cp == 15 or cp == 17 or cp == 19 then local x, y, z = getElementPosition( source) local x1, x2, x3 = getElementRotation(source) setElementPosition(source, x, y, z+20) setElementRotation(source, x1, x2, x3(source)) end end )
-
الم خش على كودك وشف فوق وش مكتوب ~ 1.getPlayerOccupiedVehicle هاذا الفنكشن تم ازالته استبدله ب 1.getPedOccupiedVehicle ~
-
---ClientSide ! GUIEditor = { button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(520, 86, 298, 263, "Car System By Alhajarii", false) guiWindowSetSizable(GUIEditor.window[1], false) Repair = guiCreateButton(18, 45, 109, 50, "Repair",false,GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") OnOff = guiCreateButton(169, 45, 109, 50,"On-Off",false,GUIEditor.window[1]) Flip = guiCreateButton(23, 148, 109, 50,"Flip",false,GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "clear-normal") Destroy = guiCreateButton(173, 148, 105, 50, "Destroy", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(7, 206, 226, 42, "By Alhajarii", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiSetVisible (GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) addEventHandler('onClientGUIClick', root, function() if ( source == Repair ) then triggerServerEvent('fix', localPlayer) elseif ( source == OnOff ) then triggerServerEvent('OnOff1', localPlayer) elseif ( source == 'Flip' ) then triggerServerEvent('qlb', localPlayer) elseif ( source == Destroy ) then triggerServerEvent('ksr', localPlayer) end end ) ---ServerSide ! addEvent('fix', true) addEventHandler('fix', root, function() if (isPedInVehicle( source ) ) then local veh = getPedOccupiedVehicle(source) local fix = fixVehicle (veh) if ( fix ) then outputChatBox (" Vehicle fixed ! ", source, 255, 255,0 ) else outputChatBox (" You Must Be in Vehicle ! ", source, 255, 255,0 ) end end end ) addEvent('OnOff1' ,true) addEventHandler('OnOff1', root, function() local state = getVehicleEngineState(getPedOccupiedVehicle(source)) if ( state ) then setVehicleEngineState(s1 , false) outputChatBox (" Engine Off ! ", source, 255, 255,0 ) else outputChatBox (" Engine On ! ", source, 255, 255,0 ) end end ) addEvent('qlb', true) addEventHandler('qlb' , root, function() if isPedInVehicle(source) then rx, ry, rz = getElementRotation(getPedOccupiedVehicle(source)) setElementRotation(getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox(" Car Successfully fliped !", source, 255, 255, 0 ) end end ) addEvent('ksr', true) addEventHandler('ksr', root, function() if isPedInVehicle(source) then local veh = getPedOccupiedVehicle(source) destroyElement(veh) outputChatBox(" Car Successfully Destroyed ! ", source, 255, 255 ,0 ) else outputChatBox (" You Must Be in Vehicle ! ", source, 255, 255,0 ) end end ) مستر علم ياليت تقرى الكود اللي حطيته انت للاستبدال ! يقول لك الكود ملغي استخدم getPed
-
خطأ ~ This function removes the given object (string) from the given ACL group هاذا الامر يستخدم لي ازالة قروب معين ~ اتبع طريق برستيج :]
-
لا فهمت قصده شباب مثلا انا وعناد بفريق بوليس صح ؟ عناد الضحيه ~ وانا القاتل عناد دمه ماينقص صح وانا اطلق على عناد ينقص من دمي يعني يبي دم القاتل لو يطلق على خويه ماينقص ~ تفضل سفوحي ض1 ---ClientSide addEventHandler('onClientPlayerDamage', root, function(attacker) if getPlayerTeam(attacker) and getTeamName(attacker) == 'Police' then setElementHealth(attacker, getElementHealth(attacker) +100) end end )
-
يانوب ماطلبت اذا خويك معك ماتقتلون بعض ؟ ولا ينقص منكم شي ؟ هاذا كودي !
-
اذا مأنفع كود مستر سعد جرب كودي ان شاء الله يزبط ~ ---ClientSide addEventHandler('onClientPlayerDamage', root, function(attacker) if getPlayerTeam(attacker) and getTeamName(attacker) and(getPlayerTeam(source) and getTeamName(source) == 'Police') then cancelEvent() outputChatBox('You Cant,t Kill Your Team Buddy !', 255, 255, 0) end end )
-
واذا تبي الاكواد كلهآ تفضل ذي طريقة تريقر للسيرفر --ClientSide addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" then local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") then triggerServerEvent('no', localPlayer) setElementHealth(attacker, getElementHealth(attacker) - 20) end end end) --ServerSide addEvent('no', true) addEventHandler('no', root, function() setTeamFriendlyFire ( getTeamFromName ( "Police" ), false ) end )
-
اذا في اخطاء يرجى التصحيح --ClientSide addEventHandler('onClientGUIClick', root, function( ) if ( source == ButtonName ) then triggerServerEvent('qwe', localPlayer) end end ) --ServerSide addEvent('qwe', true) addEventHandler('qwe', root, setTimer ( function ( thePlayer ) if ( thePlayer and isElement ( thePlayer ) ) then setElementHealth ( thePlayer, getElementHealth ( thePlayer ) + 100 ) end end ,1000, 0, source) ) setTimer(removeEventHandler,5000,1,'qwe',getRootElement(), source)
-
شغآل + مجرب عليك تغيير الاحداثيات بس ~ --ClientSide key = "F6" GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function openWin () if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor(false) else guiSetVisible (GUIEditor_Window[1], true) showCursor(true) end end bindKey(key, "down", openWin) addEventHandler("onClientPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true) showCursor (true) end ) addEventHandler("onClientGUIClick",root, function (player) if (source == GUIEditor_Image[1]) then triggerServerEvent("spawn1", localPlayer, localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2", localPlayer, localPlayer) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) end end ) --ServerSide addEvent('spawn1', true) addEventHandler('spawn1', root, function(player) spawnPlayer(player, 22.223, 19.252, 10.2424) outputChatBox('You Are Now in Hajwlah',player, 255, 255,0) end ) addEvent('spawn2', true) addEventHandler('spawn2', root, function(player) spawnPlayer(player, 22.2442, 16.252, 10.2424) outputChatBox('You Are Now in BaseMode',player, 255, 255,0) end ) Meta.xml "yazn" version="0.9" type="script" author="yazn" description="spawnscript"/>
-
آنا ابرمج لك بمقآبل
-
Mr عندك أخطاْء ~ ---ServerSide addEvent('spawn1', true) addEventHandler('spawn1', root, function() spawnPlayer(source,x, y, z) end ) addEvent('spawn2', true) addEventHandler('spawn2', root, function() spawnPlayer(source,x, y, z) end ) addEventHandler('onPlayerWasted', root, function(attacker, weapon) if(getElementType(attacker) == 'player') then spawnPlayer(source,x, y, z) else spawnPlayer(source,x , y, z) end end ) ---ClientSide key = "حط الزر" GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) function openWin () if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor(false) else guiSetVisible (GUIEditor_Window[1], true) showCursor(true) end end bindKey(key, "down", openWin) addEventHandler("onClientPlayerJoin", root, function () guiSetVisible ( GUIEditor_Window[1] ,true) showCursor (true) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor_Image[1] then triggerServerEvent("spawn1",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) elseif source == GUIEditor_Image[2] then triggerServerEvent("spawn2",getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1] ,false) showCursor (false) end end )
-
برستيج توك متعلم برمجه وجاي توطوط فوق راسي لو سمحت بدون سب اذا كودي فيه خطا قول واذا مآفي ماله داعي ززيادة الكلام
-
طلال لازم تسوي انترو للمأركر =D teleport = createMarker ( 1367.34094, -1279.96411, 12.54688, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler('onMarkerHit', teleport, function( thePlayer) if(getElementType(thePlayer) == 'player' ) then setElementInterior( thePlayer, 6 ) setElementPosition( thePlayer, 317.2380, -168.0520, 999.5930 ) end end )
-
تبوله الرجآل يبي اذا خش تيم الشرطه يعطيه الشخصية 217 واذا حاول يغير الشخصية يطرده برا التيم ~
-
---ServerSide addEventHandler('onElementModelChange', resourceRoot, function(oldModel, newModel) local teams = getPlayerTeam(source) if teams then if (getElementType(source) == 'player' and getTeamFromName == 'Police' and newModel == 217) then setPlayerTeam(source, nil) outputChatBox('You Have Been Kicked Out Dont Change Your Skin', source, 255, 0, 0) end end end )
-
يايزن كود خطأ Xخطآ ~ + سفآح كودي متآكد انه يشتغل اللي مكتوب ----ServerSide ! حطه في ملف سيرفر لحاله وخل الميتا server والثاني ---ClientSide حطه في ملف لحاله وبالميتا خله clientSide ~
