-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
----ServerSide! addEventHandler('onPlayerJoin', resourceRoot, function() local team = getPlayerTeam( source) if ( team) and (getTeamFromName(source) == 'Police') and(getTeamFriendlyFire (team) == true) then setTeamFriendlyFire(team, false) triggerClientEvent(source, 'damage', source) end end ) -----ClientSide! addEvent('damage', true) addEventHandler('onClientPlayerDamage', resourceRoot, function() cancelEvent ( ) end ) اذا في أخطاء صححوها له ~
-
Example ! marker1 = createMarker( -1353.4000244141, -483.5, 14.199999809265, "cylinder", 4, 255, 255, 255, 225 ) addEventHandler('onClientMarkerHit', marker1, function(player) if(getElementType(player) == 'player' and player == localPlayer) then guiSetVisible(gui_element, true) showCursor(true) end end )
-
GUIEditor_Image = {} GUIEditor_Image[1] = guiCreateStaticImage(0,0,105,599,"bar.png",false) GUIEditor_Image[2] = guiCreateStaticImage(21,38,77,117,"lea.png",false,GUIEditor_Image[1]) GUIEditor_Image[3] = guiCreateStaticImage(114,6,255,387,"leaw.png",false,GUIEditor_Image[2]) GUIEditor_Image[4] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[2]) GUIEditor_Image[5] = guiCreateStaticImage(20,229,69,131,"mem.png",false,GUIEditor_Image[1]) GUIEditor_Image[6] = guiCreateStaticImage(114,6,255,387,"memw.png",false,GUIEditor_Image[3]) GUIEditor_Image[7] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[3]) GUIEditor_Image[8] = guiCreateStaticImage(21,424,76,156,"cw.png",false,GUIEditor_Image[1]) GUIEditor_Image[9] = guiCreateStaticImage(114,6,255,387,"cww.png",false,GUIEditor_Image[4]) GUIEditor_Image[10] = guiCreateStaticImage(204,18,451,558,"win.png",false,GUIEditor_Image[4]) function open() guiSetVisible(GUIEditor_Image[1],not guiGetVisible(GUIEditor_Image[1])) showCursor(guiGetVisible(GUIEditor_Image[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Image[1])) end bindKey("F1","down",open) addEventHandler('onClientGUIClick', resourceRoot, function( button, state, absoluteX, absoluteY ) if (source == GUIEditor_Image[2] ) then guiSetVisible(GUIEditor_Image[4] , true ) showCursor(true) elseif(source == GUIEditor_Image[5]) then guiSetVisible(GUIEditor_Image[7],true) elseif(source == GUIEditor_Image[8]) then guiSetVisible(GUIEditor_Image[10],true) end end )
-
والله كثيره شوفهأ في wiki موجوده ~ انت الحين صمم النافذه وبنسآعدك ~
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(114,90,558,418,"؟",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(12,27,537,382,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("؟",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(15,74,86,44,"الزر1",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(15,134,86,44,"الزر2",false,GUIEditor_Tab[1]) GUIEditor_Image[1] = guiCreateStaticImage(122,14,401,324,"images/1.png",false,GUIEditor_Tab[1]) GUIEditor_Image[2] = guiCreateStaticImage(122,14,401,324,"images/2.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("؟",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(204,111,315,130,"؟ ",false,GUIEditor_Tab[2]) GUIEditor_Label[2] = guiCreateLabel(198,182,237,42,"؟",false,GUIEditor_Tab[2]) closeButton = guiCreateButton(27,297,40,29,"~[x]~",false,GUIEditor_Tab[1]) closeButton2 = guiCreateButton(27,297,40,29,"~[x]~",false,GUIEditor_Tab[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Image[2],false) -------------------------------------------- for i,lal in ipairs(GUIEditor_Label) do guiSetFont(lal,"default-bold-small") guiLabelSetColor(lal,255,255,0) ------------------------------------------ addEventHandler ( "onClientGUIClick", root, function ( ) if source == closeButton then guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) guiSetInputEnabled( false ) elseif source == closeButton2 then guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) guiSetInputEnabled( false ) elseif source == GUIEditor_Button[1] then guiSetVisible( GUIEditor_Image[1], true ) elseif source == GUIEditor_Button[2] then guiSetVisible( GUIEditor_Image[1], false ) guiSetVisible( GUIEditor_Image[2], true ) end end) --------------------------------------- addEvent ( "wnd", true ) addEventHandler ( "wnd", root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end) end
-
يابرستيج الرجآل يبي زي مآكتبت انا فوق مآراح ينفع الا يسوي نافذه + نسيت شي لازم تسوي تحديث للسكربت عشان اسماء الاعبين + الايديات لو تتغير ~
-
--server side local serials = { {Serial = "السيريال هنا", Output = "الكلام هنا"}, {Serial = "السيريال هنا", Output = "الكلام هنا"}, {Serial = "السيريال هنا", Output = "الكلام هنا"} } addEventHandler("onPlayerJoin", root, function() for i=1, #serials do if serials[i]["Serial"] == getPlayerSerial(source) then outputChatBox(serials[i]["Output"], root, 0, 255, 0, true) break end end end) فجرتها تآبل هههههههه ~
-
بالحاله ذي بتسوي سكربت طويل وعريض ض1 تسوي نافذه + اسماء الاعبين + الايدي وزر يسوي سلاب + مايفتح النافذه الا الادمن وتقدر تضيف رسالة تم ازالة الاعب او الايدي الفلاني ~ بس صعبه عليك ~
-
+ المفروض تشيل " + المفروض SetPlayerTeam(source, Specator) الى SetPlayerTeam(source, team ) local serials = { ["السريال"] = true, } addEventHandler("onPlayerJoin", root, function() if serials[getPlayerSerial(source)] then local team = getPlayerTeam ( source ) if ( team and getTeamName ( team ) == 'Spectator' ) then setPlayerTeam(source,team) end end end ) مشكور على التعديل + يآولد المفروض يشوف اذا هو مو دخل مآهو بفريق يحطه سبكيوتر مو يفحص هو سبكيتور ويرجع يحطه سبكيوتر اتوقع لازم نستخدم if not ?
-
Goood [TUT] Thank's AB-47 ~
-
عندي لك سكربت احسن ض1 ~ اول مآيخش السيرفر يتم كشف السيريال حقه لان السيريال ثآبت ويتم وضعه في فريق المشآهدة ~ حط السيريال + 'specator' == غيرها لاسم فريق المشاهده بسيرفرك ~ --server side local serials = { ["السريال"] = true, } addEventHandler("onPlayerJoin", root, function() if serials[getPlayerSerial(source)] then local notAllowed = getTeamFromName('Spectator') if ( notAllowed) then setPlayerTeam(source, notAllowed) end end end)
-
او استخدم تيبل افضل ~ --server side local serials = { ["السريال"] = true, ["السريال"] = true, ["السريال"] = true } addEventHandler("onPlayerJoin", root, function() if serials[getPlayerSerial(source)] then outputChatBox("الكلام هنا", root, 0, 255, 0, true) end end)
-
---Pic Script -- Client addEventHandler('onClientGUIClick', resourceRoot, function() if ( source == ButtonName ) then guiCreateStaticImage( 20, 200, 100, 100, 'imagename.png', true ) guiSetVisible('imagename.png', false) end end) ---Show the window --Client addEvent('show', true) addEventHandler('show', root, function() guiSetVisible('imagename.png', true) end ) addEventHandler('onPlayerLogin', resourceRoot, function() local put = getTeamFromName('Red') if ( put ) then triggerClientEvent(source, 'show', source) setPlayerTeam( source, put) spawnPlayer(source, 0, 25, 5) giveWeapon(source, 31, 200) fadeCamera(source, true) setCameraTarget(source, source) setElementModel(source, 106) end end ) ----Server Teams addEventHandler('onResourceStart', resourceRoot, function() local team1 = createTeam( 'Red', 0, 255, 0) end ) اذا في أخطاء صححوها لصاحب الموضوع ~
-
function reload (thePlayer) reloadPedWeapon( thePlayer) end addEventHandler('onResourceStart', resourceRoot, reload) addEventHandler('onPlayerJoin', resourceRoot, function(thePlayer) bindKey(thePlayer, 'r', 'down', reload) end )
-
and its https://wiki.multitheftauto.com/wiki/CreateFire not createExplosion ~
-
[REL] HeroInventory - Inventory System [Groups + More]
Max+ replied to Malicious Hero.'s topic in Resources
Very Good Job ! i love the Image Style ! Keeb up the good Work ! -
The Anim you want its on Dozer ~ addCommandHandler('on', root, function(player) local vehicle = getPedOccupiedVehicle(player) if vehicle then setPedAnimation( player, 'DOZER', 'DOZER_getout_RHS') end end )
-
----clientSide myWindow = guiCreateWindow ( 0.3, 0.3, 0.4, 0.6, "Clan Ekle", true ) guiCreateLabel(0.1,0.2,0.4,0.6,"Tag",true,myWindow) editBox = guiCreateEdit( 0.3, 0.2, 0.4, 0.05, "", true,myWindow ) guiCreateLabel(0.1,0.4,0.4,0.6,"Clan Adı",true,myWindow) editBox1 = guiCreateEdit( 0.3, 0.4, 0.4, 0.05, "", true,myWindow ) guiCreateLabel(0.1,0.6,0.4,0.6,"Renk Kodu",true,myWindow) editBox2 = guiCreateEdit( 0.3, 0.6, 0.4, 0.05, "", true,myWindow ) button = guiCreateButton( 0.35, 0.8, 0.2, 0.1, "Ekle", true,myWindow ) showCursor(true) function outputEditBox () local tag = guiGetText ( editBox ) local name = guiGetText ( editBox1 ) local color = guiGetText ( editBox2 ) triggerServerEvent ( "addClan", localPlayer, tag,name,color ) end addEventHandler ( "onClientGUIClick", button, outputEditBox ) ----ServerSide addEvent('addClan', true) addEventHandler('addClan', root, function ( tag,name,color ) Tags = { {"%[HW%]", "Holy Warriors", "#50B200", nil} } table.insert(Tags,{tag,name,color,nil}) end ) and use /debugscript 3 and tell us what is the errors shown
-
---ClientSide addEventHandler('onClientGUIClick' , root, function() if ( source == GUIEditor-Button[3] ) then local m = getPlayerMoney() if ( m >= 1000 ) then triggerServerEvent('Take', localPlayer ) local x,y,z = getElementPosition ( localPlayer ) local m2 = createObject ( 1485, x, y, z ) attachElements ( m2, localPlayer, 0.05, 0, 0.7, 0, 45, 118 ) else outputChatBox ( "* You don't have enough money !", 255, 0, 0, true ) end end end) --ServerSide addEvent('Take', true) addEventHandler('Take', root, function() takePlayerMoney(localPlayer, 1000) end )
-
خخخخخخخخ وخطآ مره ثآنية ~ addEventHandler('onResourceStart', root, function() local map = getMapName() local who = getLocalPlayer() if map and map ~= 'Here' then toggleControl(who,"fire", false) else toggleControl(who,"fire", true) end end) يآصاحب الموضوع عدل Here = بآسم اللوبي حقت البيس مود ~