PaiN^
Members-
Posts
2,258 -
Joined
-
Last visited
Everything posted by PaiN^
-
setWeaponAmmo is a server side only function .
-
إتنبه لا تاكل عين, كلنا نبدأ السبت + لاهنت عالطرح يا هولستن, و فكرة برستيج جميلة أتمنى تسويها بالإصدارات الجاية
-
_ هذي حطها لتخطي برامتر ما يبي يستخدمه إسم البراميتر مو لازم يكون زي الويكي, لكن الترتيب لازم لو تشوف الويكي ترتيب البراميتر للحدث إللي إستخدمه : thePreviousAccount : guest هذا يعني الحساب السابق أو القديم, هو غالبا يكون حساب ضيف theCurrentAccount : هذا الحساب إللي سجلت دخول عليه و حنا نبغى الحساب إللي سجلت دخول عليه, عشان كذا تخطينا الحساب القديم إللي هو البراميتر الأول بإستخدام _ و رحنا على البراميتر الثاني إللي هو الحساب الجديد
-
[Q.9]~[ هجولة شباب حائل ] = [KsA]=[ القوات الرسمي ]~[Q.9]
PaiN^ replied to 3ssol's topic in Arabic / العربية
بالتوفيق ,, -
لوول داري بس كنت بوضحله ذذ
-
و ليه ما تلغي الحدث و تريح راسك ذذ addEventHandler( 'onPlayerCommand', root, function( cmd ) if cmd == 'setpassword' then if getPlayerSerial ( source ) ~= 'Your Serial' then cancelEvent( ); banPlayer( source, false, false, true, source, 'The Reason' ); end end end );
-
أخوي .. بعض أوقات .. مثلاً لما تشتغل الأغنية أكثر من مرة يعني مثلاً الأغنية مشغلة ثلاث مرات أو مرتين المهم أكثر من مرة واحدة ماتقفل كل الأصوات .. يعني تقفل صوت واحد بس stopSound لما تستخدم وظيفة تقفل كل الأصوات حتى لو كانت مكررة destroyElement لكن .. sound لو تم تنفيذها ترجعلك عنصر playSound وظيفة تدمر عنصر الصوت إللي إنت تحدده فيها stopSound و ظيفة يعني لو سويت كذا sound = playSound( 'sound.mp3' ) stopSound( sound ) سواء كان مكرر ولا لا sound راح تدمر أي صوت معرف داخل المتغير stopSound وظيفة + stopSound, destroyElement هي صح بالوظيفتين
-
resourceRoot = getResourceRootElement( getThisResource( ) ) + أنا كان قصدي مو لازم تحط أي شي أصلا في اللوب, لأنها راح تجيب الأزرار كلها اللي في السيرفر
-
Useful Function أي فنكشن يكون أخضر في الويكي لازم تعرفه في المود عندك يعني ضيف الكود حقه في بداية المود getElementSpeed وبالنسبة للفنكشن الكود حقه : function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end
-
سيرفر onResourceStop,onResourceStart الأحداث إستخدم onClientResourceStart + ما يحتاج تشيل الصوت لمن يوقف المود لأنه راح يتشال تلقائي + إنت مسوي الفنكشن داخل الحدث و مسميه + وبعد الفنكشن root مقفل الحدث بعد
-
لآهنت عالشرح الوافي, و إن شاء الله يستفيدون كثار
-
I never said string.format -.-" Create a table with the words you want to stop from showing in the chat, then loop the table with onPlayerChat event and use string.find to check if the message have any words from the table. If it have any cancel the event and output the message and modify the words using string.gsub .
-
في اللوب root ما يحتاج إنك تحط
-
؟ isElement, destroyElement بدل stopSound ليه ما تستخمون
-
Create a marker \ colshape and use onMarkerHit \ onColshapeHit event to put out the warning message and use setElementPosition to place him outside the area when he gets in .
-
You are trying to kick a vehicle, see what the killer argument is ! You should use : getVehicleOccupant or getVehicleController + and make sure you have the tag in your meta.xml, So the onClientPlayerHeliKilled event work
-
table addEventHandler 'onPlayerChat' string.find cancelEvent string.gsub outputChatBox
-
مداك تستخدم الداتا أفضل ذذ setElementData getElementData
-
attachElements إستخدم الأرقمنتات الباقية من فنكشن
-
-_-" تمزح ! شوف تاريخ الموضوع
-
local theGate = createObject( 2669, 1554.3000488281, -1634, 13.800000190735, 0, 0, 0 ) setTimer( up, 1000, 1 ) function up ( ) moveObject( theGate, 5000, 1554.3000488281, -1634, 28.700000762939 ) _down = setTimer( down, 8000, 1 ) end function down ( ) moveObject( theGate, 5000, 1554.3000488281, -1634, 13.800000190735 ) _up = setTimer( up, 8000, 1 ) end
-
???? للتوقيف
-
function win( ) local pRank = exports["race"]:getPlayerRank( source) if pRank == 1 then givePlayerMoney(source, 1000) elseif pRank == 2 then givePlayerMoney(source, 900) elseif pRank == 3 then givePlayerMoney(source, 800) elseif pRank == 4 then givePlayerMoney(source, 700) elseif pRank == 5 then givePlayerMoney(source, 600) elseif pRank == 6 then givePlayerMoney(source, 500) elseif pRank == 7 then givePlayerMoney(source, 400) elseif pRank == 8 then givePlayerMoney(source, 300) elseif pRank == 9 then givePlayerMoney(source, 200) elseif pRank == 10 then givePlayerMoney(source, 100) end end addEventHandler("onClientPlayerWasted", getRootElement(), win )
