-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
addEventHandler("onClientGUIClick", resourceRoot, function () if ( source == b2 ) then if ( isTimer(progTimer) ) then return end progTimer = setTimer(function () guiProgressBarSetProgress(pro2, guiProgressBarGetProgress (pro2) + 10 ) if ( guiProgressBarGetProgress (pro2) >= 100 ) then if ( guiGetEnabled ( b2 ) == true ) then guiSetEnabled ( b2, false ) else guiSetEnabled ( b2, true ) setElementData(resourceRoot, "ResourceAdminMessag", text, true) end killTimer(progTimer ) end end, 100, 0) end end)
-
حيااك الله @ شااطح ذذ مانتهبت لها ثانكس
-
Table = {} addCommandHandler('ss', function ( player ) table.insert(Table,player) end) addEventHandler('onPlayerWasted',root, function ( ) for key , value in ipairs ( Table) do if ( value == source ) then table.remove(Table,key) break end end end) addCommandHandler('who', function ( player ) if ( #Table == 1 ) then outputChatBox( getPlayerName(Table[1])..' فقط هذا اللاعب الموجود بالجدول',player) elseif ( #Table > 1 ) then outputChatBox( ' يوجد اكثر من لاعب داخل الجدول',player) end end) هالمثال مايحتاج شرح لما يكتب الكلمة يدخله للجدول ولما يموت يطلعه من الجدول وفيه لاعب واحد فقط بالجدول راح يحط اسمه واذا فيه اكثر من لاعب بيقولك ان فيه اكثر من لاعب who واذا كتبت وبهالطريقة جبنا اخر لاعب بالجدول Table[1] ولو مثلا فيه اثنين بالجدول وتبي تجيب ثاني لاعب تغير رقم 1 الي 2 عشان يجيب القيمة الثانية الي هي اللاعب اتمني فهمت
-
BLOCK = { "ورع", "ورعين" } Words = { 'وناسة', 'وناسة تايم' } addEventHandler ( "onPlayerChat", root, function ( message, messageType ) if ( messageType == 0 ) then for i, v in ipairs ( BLOCK ) do if ( string.find(message,v) ) then cancelEvent ( ) outputChatBox ( "#FF0000x[ نظام المخالفات ]x @ ".. getPlayerName ( source ) .." #FF0000, لقد اهان احد من اعضاء السيرفر ", root, 255, 0, 0, true ) outputChatBox ( "#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب أهانت احد من اعضاء السيرفر ", source, 255, 0, 0, true ) return end end for i, v in ipairs ( Words ) do if ( string.find(message,v) ) then cancelEvent ( ) outputChatBox("#FF0000x[ نظام المخالفات ]x @ "..getPlayerName(source).." #FF0000, لقد حاول نشر سيرفر اخر ",root,255,0,0,true) outputChatBox("#FF0000x[ نظام المخالفات ]x#FF0000 لقد حصلت علي مخالفة بسبب محاولة نشرك لسيرفر اخر غير سيرفر الملووك ",source,255,0,0,true) break end end end end )
-
ابدعت يااابطل وفكرة حلوه بس ماحسك مهتم بشكل اللوحة وتسلم ع الاهداء وبالتوفيق يارب
-
تصحيح لكودك addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[9] ) then if ( guiGetText (GUIEditor.edit[1]) ~= "" and guiGetText (GUIEditor.edit[2]) ~= "" and tonumber ( guiGetText ( GUIEditor.edit[1] ) ) and tonumber ( guiGetText ( GUIEditor.edit[2] ) ) and tonumber ( guiGetText ( GUIEditor.edit[1] ) ) < 24 and tonumber ( guiGetText ( GUIEditor.edit[1] ) ) > -1 and tonumber ( guiGetText ( GUIEditor.edit[2] ) ) < 60 and tonumber ( guiGetText ( GUIEditor.edit[2] ) ) > -1 ) then setTime ( tonumber ( guiGetText ( GUIEditor.edit[1] ) ), tonumber ( guiGetText ( GUIEditor.edit[2] ) ) ) outputChatBox ( "تم تغير الوقت بنجاح", 0, 255, 0, true ) end end end )
-
موود جميل واستمرر ي بطل وعندي ملاحظة : شكرا حبيبي كله بفضلك المفروض تقول كله بفضل الله ثم فضلك
-
من سطر 4 الي 6 كله غلط
-
r,g,b = math.random(0,255),math.random(0,255),math.random(0,255) استعمل هالطريقة وحطها داخل الرندر عشان كل شوي يتغير r,g,b = وطبعا هذول بتحطهم بمكان الالوان بكود الكلام
-
خلي الميتا كذا "NssoR" name="Script" version="1.0" type="script"/>
-
getDistanceBetweenPoints3D
-
الله يعافيك يالذيب
-
سويت مود الي تكتب باف ثمانه كلمه تصفر سكورك بس فيه غلط!
!#NssoR_) replied to iQsaMi~Mg.HaMoTa_oK!'s topic in البرمجة
العفوو حياك الله بأي وقت -
function isElementMoving ( theElement ) if isElement ( theElement ) then local x, y, z = getElementVelocity( theElement ) return x ~= 0 or y ~= 0 or z ~= 0 end return false end مثال من الويكي local screenWidth, screenHeight = guiGetScreenSize () -- Get the screen resolution (width and height) function idleCheck () local state = "Unknown" local element = getPedOccupiedVehicle ( localPlayer ) or localPlayer -- Check whether the player is moving or not. if isElementMoving ( element ) then state = "moving" else state = "idling" end -- Write our state string to the lower left corner of the screen dxDrawText ( "You are " .. state .. "!", 40, screenHeight - 40, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default" ) end -- Keep the text visible with onClientRender. addEventHandler ( "onClientRender", root, idleCheck )
-
الكود شغال مافيه شي بس يبيلك تتحق ان القاتل مو انت مثل ماقال الاخ ديفلت وثاني شي تتحقق ان القاتل لاعب ماهو سياره او ماشابه ..#
-
سويت مود الي تكتب باف ثمانه كلمه تصفر سكورك بس فيه غلط!
!#NssoR_) replied to iQsaMi~Mg.HaMoTa_oK!'s topic in البرمجة
function resetPlayerScore (source) local Datas = { "score","kills","deaths","dmg","Damage","level","exp" } for i = 1,#Datas do setElementData(source,Datas[i],0) end outputChatBox("#6C7B8B* [server]#3399FF "..getPlayerName(source) .." #FF9933has resetted his *#808080score#FF9933*.", getRootElement(), 255, 255, 255, true ) end addCommandHandler("rs", resetPlayerScore) -
addEventHandler("onPlayerLogin", root, function (_ ,accName ) if isObjectInACLGroup("user." .. getAccountName(accName), aclGetGroup("VIP")) then setElementData(source,"VIP", true) end end)
-
وش اسم القريد ليست حقك؟ if (source == gridlist) then local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) تأكد من اسم القريد ليست لأنك حاط بالتحقق اسم غير عن الموجود بالكود الي تحته
-
^ غير السطر 25 الي if not( isElement(player) ) then outputChatBox('اللاعب غير موجود بالسيرفر تحقق من ذالك',client,255,0,0,true) return end + سطر 4 if (source == GUIEditor.gridlist[1]) then موجوده الاند بس مانتبهت لها شكلك ذذ
-
addEventHandler("onClientGUIClick", guiRoot, function() if (source == gridlist) then local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local text = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) local player = getPlayerFromName(text) if ( player ) then triggerServerEvent("Account", localPlayer, player) end end end) addEvent("Accounts",true) addEventHandler("AccountS", root, function(Account) guiSetText(memo,'Account:'..tostring(Account)) end) -- Server addEvent("Account",true) addEventHandler("Account", root, function(player) if ( isElement(player) ) then outputChatBox('اللاعب غير موجود بالسيرفر تحقق من ذالك',client,255,0,0,true) return end local Account = getPlayerAccount(player) if not ( isGuestAccount(Account ) ) then triggerClientEvent(client,"AccountS", client, getAccountName(Account)) end end)
-
ماشاءالله فكرة جميلة وبنفس الوقت جديده واصل يالذيب والي الامام بالافكار المبدعه وتسلم ع الاهداء
-
يسويها بالتجميد لان لو سواها بالقيم سبيد راح تكون لجميع اللاعبين اللي بالسيرفر سواء كان بالجولة او .خارج الجولة لذلك يسويها بالتجميد ويجمد اللي بالجولة فقط يمديه يسوي ترايقر للاعبين الي بالجولة ويحط الكود بجهة الكلنت وكذا بيصير للاعبين الي بالجولة فقط
-
لما يشوفونك تتكلم محد يعبرك بس لما يجيهم الخطأ ويتوهقوون يجوونك