MR.President Posted June 12, 2017 Posted June 12, 2017 في امر يضهر علامه (bilds) فقط على بعض السيارات ؟
^iiEcoo'x_) Posted June 12, 2017 Posted June 12, 2017 getElementsByType getElementModel createBlipAttachedTo
MR.President Posted June 12, 2017 Author Posted June 12, 2017 ممكن لو سمحت تشرحلي عنهم لاني ما فهمت شي
^iiEcoo'x_) Posted June 12, 2017 Posted June 12, 2017 getElementsByType -- لوب للسيارات getElementModel -- نجلب نوع السيارة createBlipAttachedTo -- نحط عليها علامة ( blip )
MR.President Posted June 12, 2017 Author Posted June 12, 2017 ممكن تشرحلي اكثر عن هذا الفنكشن : createBlipAttachedTo يعني كيف استعمله
yasin0 Posted June 12, 2017 Posted June 12, 2017 لم يتم التجربة function a (aTarget) if ( getElementType (aTarget) == "player" ) and getElementModel (aTarget) == 432 then -- رقم الدبابة createBlipAttachedTo ( aTarget, 2 ) end end addEventHandler ( "onPlayerVehicleEnter", root, aTarget )
#BrosS Posted June 12, 2017 Posted June 12, 2017 35 minutes ago, yasin0 said: لم يتم التجربة function a (aTarget) if ( getElementType (aTarget) == "player" ) and getElementModel (aTarget) == 432 then -- رقم الدبابة createBlipAttachedTo ( aTarget, 2 ) end end addEventHandler ( "onPlayerVehicleEnter", root, aTarget ) اسم وظيفة الحدث غلط ومافي داعي تعرف لاعب لان سورس الحدث اصلا هي اللاعب اللي دخل السيارة
MR.President Posted June 12, 2017 Author Posted June 12, 2017 طيب يا بروس اشرح لي انت عن هذا الفنكشن : createBlipAttachedTo لو سمحت يعني
#BrosS Posted June 12, 2017 Posted June 12, 2017 3 minutes ago, MR.President said: طيب يا بروس اشرح لي انت عن هذا الفنكشن : createBlipAttachedTo لو سمحت يعني يحطلك علامة على المنت محدد (لاعب - سيارة - اوبجكت الخ )
Dragon Fire Posted June 12, 2017 Posted June 12, 2017 (edited) Shared Function الوظيفة تصلح للسيرفر والكلينت يعني خلينا نجي للأرقيومنتس ، فيه للسيرفر والكلينت طبعا راح اشرح المهم او اللي اشوفه مهم blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, element elementToAttachTo وهو العنصر اللي يجي عليه الايقونة او العلامة وهنا رابط للعناصر https://wiki.multitheftauto.com/wiki/element int icon وتقدر تقول ايدي الايقونة وهنا رابط لجميع الايقونات https://wiki.multitheftauto.com/wiki/Blip_Icons int size وهو حجم الايقونة والافتراضي هو 2 int r , g ,b , a هذي الالوان هنا مثال للسيرفر من موقع ويكي function setupRandomRobber () local myPlayer = getRandomPlayer () -- Create a radar blip at the player's position, with a 'cash' icon and only visible to everyone (no 'visibleTo' parameter) local myBlip = createBlipAttachedTo ( myPlayer, 52 ) end وهذا اللي اعرفه ضضض شكلي جايب العيد Edited June 12, 2017 by Dragon Fire
Dragon Fire Posted June 12, 2017 Posted June 12, 2017 يا الطيب المثال ذا انه يجلب لاعب عشوائي ويحط عليه ايقونة كاش اتوقع انه مره واضح + ضفت شي فوق شوفه
MR.President Posted June 12, 2017 Author Posted June 12, 2017 طيب ممكن بس مثال من عندك كرمال افهم عليك اكثر
Dragon Fire Posted June 12, 2017 Posted June 12, 2017 addEventHandler ( "onPlayerJoin", root , function() givePlayerMoney(source,1337) giveWeapon(source,30,1000) createBlipAttachedTo (source,23) end ) حطيت حدث ان اللاعب اول ما يدخل السيرفر يعطيه فلوس وسلاح وعليه علامة جمجمة بالخريطة يعني عدو + يلا الباقي عليك
Rockyz Posted June 12, 2017 Posted June 12, 2017 (edited) addCommandHandler ( "Blip", function ( pname, blipid ) local name = getPlayerFromName ( pname ) local vehicle = getPedOccupiedVehicle ( name ) if name and vehicle then createBlipAttachedTo ( name, blipid ) end end ) مثال اذا كتبت في اف 8 blip xiRocK 41 يعطي الاعب xiRocK البلب رقم 41 وهذي ارقام البلبات https://wiki.multitheftauto.com/wiki/Blip_Icons Edited June 12, 2017 by #,+( _xiRoc[K]; >
^iiEcoo'x_) Posted June 13, 2017 Posted June 13, 2017 9 hours ago, Dragon Fire said: Shared Function الوظيفة تصلح للسيرفر والكلينت يعني خلينا نجي للأرقيومنتس ، فيه للسيرفر والكلينت طبعا راح اشرح المهم او اللي اشوفه مهم blip createBlipAttachedTo ( element elementToAttachTo [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, element elementToAttachTo وهو العنصر اللي يجي عليه الايقونة او العلامة وهنا رابط للعناصر https://wiki.multitheftauto.com/wiki/element int icon وتقدر تقول ايدي الايقونة وهنا رابط لجميع الايقونات https://wiki.multitheftauto.com/wiki/Blip_Icons int size وهو حجم الايقونة والافتراضي هو 2 int r , g ,b , a هذي الالوان هنا مثال للسيرفر من موقع ويكي function setupRandomRobber () local myPlayer = getRandomPlayer () -- Create a radar blip at the player's position, with a 'cash' icon and only visible to everyone (no 'visibleTo' parameter) local myBlip = createBlipAttachedTo ( myPlayer, 52 ) end وهذا اللي اعرفه ضضض شكلي جايب العيد أخوي عندك غلط a مش لون معناتها الشفاشية alpha
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now