-
Posts
335 -
Joined
-
Last visited
Everything posted by Booo
-
client addEventHandler("onClientResourceStart",getRootElement(), function() if not fileExists("settings.xml") then local settings = xmlCreateFile("settings.xml","AutoLogin") local Username = xmlCreateChild(settings,"Username") local Password = xmlCreateChild(settings,"Password") local Serial = xmlCreateChild(settings,"Serial") xmlSaveFile(settings) end local node = xmlLoadFile ("settings.xml") local Username = xmlFindChild(node,"Username",0) local Password = xmlFindChild(node,"Password",0) local Serial = xmlFindChild(node,"Serial",0) local pass = xmlNodeGetValue(Password) local user = xmlNodeGetValue(Username) local serial = xmlNodeGetValue(Serial) if getPlayerSerial(localPlayer) == serial then triggerServerEvent("triggerThis",getLocalPlayer(),user,pass) end end ) addCommandHandler("autologin", function(command,username,password) local node = xmlLoadFile ("settings.xml") local Username = xmlFindChild(node,"Username",0) local Password = xmlFindChild(node,"Password",0) local Serial = xmlFindChild(node,"Serial",0) local user = xmlNodeGetValue(Username) local pass = xmlNodeGetValue(Password) local serial = xmlNodeGetValue(Serial) if user == "none" or user == "" then xmlNodeSetValue(Username,username) xmlNodeSetValue(Password,password) xmlNodeSetValue(Serial,getPlayerSerial(getLocalPlayer())) xmlSaveFile(node) else xmlNodeSetValue(Username,"none") xmlNodeSetValue(Password,"none") xmlNodeSetValue(Serial,"none") xmlSaveFile(node) end end ) server addEvent("triggerThis",true) addEventHandler("triggerThis",getRootElement(), function(user,pass) logIn(source,getAccount(user),pass) outputChatBox("You have been automatically logged in to #FFFFFF"..user.."'s#00FF00 account!",source,0,255,0,true) outputChatBox("To disable AutoLogin, use /autologin!",source,0,255,0,true) end )
-
nope i need used onClientWeaponFire not onClientPlayerWeaponFire read wiki please https://wiki.multitheftauto.com/wiki/OnClientWeaponFire
-
function gunfire ( hitEntity, posX, posY, posZ, normalX, normalY, normalZ, materialType, lighting, pieceHit) if getElementType ( pieceHit ) == "vehicle" then if (source == 31) then blowVehicle( pieceHit ) end end end addEventHandler ( "onClientWeaponFire",getLocalPlayer(),gunfire)
-
are you kidding me? i need used ProgressBar with guiCreateWindow .
-
addEventHandler( "onClientResourceStart", getRootElement( ), function () progressBar = guiCreateProgressBar(0.5, 0.5, 0.1, 0.2, true) guiProgressBarSetProgress(progressBar, 50) guiSetProperty(progressBar,"BackgroundColours","FFFF0000") end ) I need such sa-mp
-
الحين onClientRender وش دخل setElementData الكلام على بدون مااجرب كودك قبل ماتعدله ميه بالميه خطا وأتحداك اذا كودي خطآ بس عرفت تسوي لك مخرج ب بس وين بتروح مني، الجآيات إكثر وثإني شي انا ماني حبيبك مع نفسسك الحمد لله على نعمة العقل الحمد لله يستحق الحمد اهل العقول برآحه يالله لك الحمد السؤال الحين ؟! وش الاضافه الحين الي حآولت انك تضيفها للموضوع
-
function spam(message) local msg = getElementData(source, "Spam") or setElementData(source, "Spam", "0") if message == msg then outputChatBox("Bitte wiederhole dich nicht!", source, 255, 0, 0) cancelEvent() end if isTimer(spamTimer) then killTimer(spamTimer) end spamTimer = setTimer( function(source) setElementData(source, "Spam", "0") end , 10000, 1, source) setElementData(source, "Spam", message) end addEventHandler("onPlayerChat", getRootElement(), spam)
-
الحين onClientRender وش دخل setElementData الكلام على بدون مااجرب كودك قبل ماتعدله ميه بالميه خطا وأتحداك اذا كودي خطآ بس عرفت تسوي لك مخرج ب بس وين بتروح مني، الجآيات إكثر وثإني شي انا ماني حبيبك مع نفسسك
-
ترا انت لي لازم تدقق هو مسوي كلينت setElementData(root, "xxx", 0) يعني ايليمنت حق resource مش حق player نعم نعم صحيح إنواع التكليج
-
ترا انت لي لازم تدقق هو مسوي كلينت setElementData(root, "xxx", 0) و انت قلبلتها سيرفر setElementData(getRootElement(),"boo", (getElementData(getRootElement(),"boo")+1) ) إقول كيف الحآل؟ طيب انت اهم شي
-
وعليكم السلام ورحمة الله وبركاته دقق بالجمله هذي يقولك" جا " يعني لواستخدم كودك وضغط واحد توه داخل السيرفر بيطلع عنده 1 ماهو صاير 3 خطـا عليك جرب الكود هذآ addEventHandler("onClientGUIClick", root, function() if (source == button) then triggerServerEvent("onbtn",root) end end) addEventHandler("onClientRender", root, function() guiSetText(label, getElementData(root, "boo") or 0) end) السيرفر addEvent("onbtn",true) addEventHandler("onbtn",getRootElement(), function() if not getElementData(getRootElement(),"boo") then setElementData(getRootElement(),"boo",0) end setElementData(getRootElement(),"boo", (getElementData(getRootElement(),"boo")+1) ) end)
-
amount = 5000 addEventHandler( "onPlayerWasted", getRootElement( ), function() takePlayerMoney(source, amount) end )
-
جرب الكود هذا وعطني خبر addCommandHandler("Laser", function (source) local m1 = getPlayerMoney(source) if ( m1 >= 3000 ) then takePlayerMoney(source,3000) outputChatBox(" You Got Laser",source,0,255,0) SetLaserEnabled(source,true) SetLaserColor(source,0,150,255,255) setTimer(function() setElementData(source, "laser.on", false) setElementData(source, "laser.aim", false) end,10000,1) else outputChatBox("* You Don't Have Enough Money",source,255,0,0) end end ) اشتغل اشكرك الكود ذا مرة مختصر شكرا على كل شي شكرا حسن شكرا تابل مبروك للكل هذا هو كود الليزر على الرحب والسعه واذا عندك اي طلب ثاني مايردك غير الكيبورد حط موضوعك وباذن لله اساعدك
-
جرب الكود هذا وعطني خبر addCommandHandler("Laser", function (source) local m1 = getPlayerMoney(source) if ( m1 >= 3000 ) then takePlayerMoney(source,3000) outputChatBox(" You Got Laser",source,0,255,0) SetLaserEnabled(source,true) SetLaserColor(source,0,150,255,255) setTimer(function() setElementData(source, "laser.on", false) setElementData(source, "laser.aim", false) end,10000,1) else outputChatBox("* You Don't Have Enough Money",source,255,0,0) end end )
-
ابحث عن addEventHandler("onClientResourceStart", getRootElement(), function(res) if res == getThisResource() then outputChatBox("Laser marker by [MM]EVIS loaded", 50,255,0) SetLaserEnabled(localPlayer, true) SetLaserColor(localPlayer, oldcolors.r,oldcolors.g,oldcolors.b,oldcolors.a) if colorPickerInitialized == 0 then -- attempt to init colorpicker stuff initColorPicker() end elseif res == getResourceFromName("colorpicker") then if colorPickerInitialized == 0 then -- attempt to init colorpicker stuff initColorPicker() end end end ) غيرها ل addEventHandler("onClientResourceStart", getRootElement(), function(res) if res == getThisResource() then outputChatBox("Laser marker by [MM]EVIS loaded", 50,255,0) SetLaserEnabled(localPlayer, false) SetLaserColor(localPlayer, oldcolors.r,oldcolors.g,oldcolors.b,oldcolors.a) if colorPickerInitialized == 0 then -- attempt to init colorpicker stuff initColorPicker() end elseif res == getResourceFromName("colorpicker") then if colorPickerInitialized == 0 then -- attempt to init colorpicker stuff initColorPicker() end end end )
-
حط ملفات السكربت هذا في الشوب https://community.multitheftauto.com/ind ... ls&id=3746 وانت عليك انك تحط بكود الزر الي يشتري ليزر الكود هذا SetLaserEnabled(source, true) SetLaserColor(source,255,0,0,255) والوقت الي ينتهي اليزر فيه setTimer(function(source) SetLaserEnabled(source, false) ,end,120000,1)
