-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Copy again.
-
local sX, sY = guiGetScreenSize() local imTime = 5000 -- 5 sec for each image local img = { "4.png", "5.png", "6.png" } addEventHandler("onClientResourceStart", resourceRoot, function() cIndex = (cIndex or 0) + 1 backGround = guiCreateStaticImage(0, 0, sX, sX, img[cIndex], false) setTimer(function() guiStaticImageLoadImage(backGround, img[cIndex]) end, imTime, #img-1) end)
-
addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and attacker ~= source and getElementType(attacker) == "player" then cancelEvent() end end) And there's no way to prevent punching other than setting all players in one team and disable friendly fire with setTeamFriendlyFire.
-
function teamName(thePlayer) local playerTeam = getPlayerTeam(thePlayer) if (playerTeam) then outputChatBox("Your team is "..getTeamName(playerTeam)) else outputChatBox("You are not in a team") end end addCommandHandler("teamname", teamName)
-
جميع اكوادك كلينت GUIEditor_Window[1] و المقصود بأسم اللوحة يعني المتغير الخاص باللوحة الي هو يجي بعد علامة = بالكود حقك اسم متغير اللوحة GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(318,49,313,541,"VIP",false) guiSetVisible(GUIEditor_Window[1], false) -- اخفاء اللوحة guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(0.1725,0.4436,0.6422,0.0739,"VIP1",true,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(0.0383,0.0425,0.9201,0.3087,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.1725,0.5878,0.6422,0.0739,"VIP2",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.1725,0.7283,0.6422,0.0739,"VIP3",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.1725,0.878,0.6422,0.0739,"VIP4",true,GUIEditor_Window[1]) local Serials = { ["انا شايل السريال حقي"] = true, } addCommandHandler("VIP1", function() if Serials[getPlayerSerial()] then guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end end)
-
Example: function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEventHandler("onClientRender", root, function() local imgX, imgY, imgWidth, imgHeight = 50, 50, 200, 200 buttonHover = isMouseInPosition(imgX, imgY, imgWidth, imgHeight) dxDrawImage(imgX, imgY, imgWidth, imgHeight, buttonHover and "myImage2.png" or "myImage.png", tocolor(255, 255, 255)) end) addEventHandler("onClientClick", root, function(button, state) if button == "left" and state == "down" then if buttonHover then outputChatBox("Button clicked!") end end end)
-
ما تحتاج تايمر الكود جداً بسيط عبارة عن سطر النافذة و سطر ثاني لأخفاء النافذة myWindow = guiCreateWindow(0.3, 0.3, 0.5, 0.60, "GUI window title", true) -- صنع نافذة guiSetVisible(myWindow, false) -- اخفاء النافذة بعد صنعها مباشرة -- myWindow اسم متغير النافذة و الكود كلينت طبعاً
-
اول ما تسوي النافذه تكون ظاهره تحتاج تستخدم الفنكشن ذا عشان تخفي النافذة بعد ما تسوي النافذه مباشرة guiSetVisible
-
vmdkmvcdjakvnqjk > qnroiqwrqifjio > TAPL.
-
I asked them on Jan 17, 2015:
-
توك حاط الموضوع و ما شاء الله مستعجل على الرد؟ المهم تعرف تشرح المود الي تبيه؟ ولا زي البعض الي جاء لي يقول سوي لي مهمة نو تيم و شرطة يخشون يغرفة و انتهى الشرح
-
He's not Arabian, obviously. He compile his scripts for reason, but still you can contact him at his facebook and try your luck. https://www.facebook.com/LuisJavierJosep
-
removeElementData
-
^ 1- 2- الفنكشن يتطلب ارقمنت واحد و الهدف منه يجيب مجموع اللاعبين الي في البحر ايش علاقة ذي الأشياء؟
-
percentage is nil, it should be a number.
