
PaiN^
Members-
Posts
2,258 -
Joined
-
Last visited
Everything posted by PaiN^
-
You should use a table so you can delete the first line in the chat once a new one comes up .
-
@ The Killer : انت حطيت الحدث, أنا حطيت الوظيفة لإضافته @ Sfa7 : كيف مالهم فايدة, راح تستخدمهم للتحقق من ان واحد من الفريقين دخل ولا لا هذا مثال : local marker = createMarker( ... ) addEventHandler( "onMarkerHit", marker, function( element ) if getElementData( element, "HaveBeenInside" ) then -- اذا الداتا المخزنة باسم HaveBeenInside قيمتها true outputChatBox( "لقد دخلت مسبقًا", element ) else -- اذا الداتا المخزنة باسم HaveBeenInside قيمتها اي شي غير true setElementData( element, "HaveBeenInside", true ) -- تخلي القيمة true end end ) بس طبعًا انت راح تخلي الداتا على الماركر مو اللاعب
-
@The Best : unpack دامه يستخدم شخصية واحدة فقط, متغير يكفي مو لازم جدول و @Mr~M3AND : جرب ذا الكود local skin = getElementModel( localPlayer ) local i = true addEventHandler( "onClientResourceStart", resourceRoot, function( ) local button = guiCreateButton( ... ) if not isElement( getPlayerTeam( localPlayer ) ) then guiSetEnabled( button, false ) end end ) addEventHandler( "onClientGUIClick", button, function( ) if i then setElementModel( localPlayer, 0 ) else setElementModel( localPlayer, skin ) end i = not i end, false ) setTimer( function( ) if isElement( getPlayerTeam( localPlayer ) ) then guiSetEnabled( button, true ) else guiSetEnabled( button, false ) end end, 60000, 0 )
-
+ addEventHandler createMarker outputChatBox
-
ماتقدر ترجع الشخصية السابقة الا اذا كنت حافظها في المود "]" وكودك ناقصه و مني فاهم عليك تمام, وين مودك وش المشكلة فيه ؟
-
نو للآسف, بعدين نظرية فيثاغورس تقدر تدورها بقوقل و تفهمها تراها سهلة
-
addEventHandler -- "onPlayerWasted" > attacker getElementData setElementData setAccountData -- للحفظ getAccountData -- للحفظ و بالنسبة للترقية, هي عن طريق لوحة ولا أمر ولا كيف ؟
-
* Server side : addEventHandler -- "onPlayerCommand" triggerClientEvent * Client side : addEvent addEventHandler guiSetVisible setTimer
-
في فنكشنات نسيتها : getElementRotation setElementRotation math.sin math.cos math.tan math.asin math.acos math.atan -- عشان تعرف تضبطه يمشي ورا العسكري setTimer -- عشان تخليه يلحقه بعد كل ثانية أو ثانيتين killTimer -- عشان يوقف يلحقه @#Faceook : destroyElement عشان يشيل الماركر, هو يخلي المجرم يلحقه بتايمر, و يقتل التايمر فيبطل يلحقه
-
"onPlayerDamage" getPlayerWantedLevel getPlayerTeam getTeamName toggleAllControls setControlState getElementPosition createMarker "onMarkerHit" destroyElement givePlayerMoney
-
أو حاجة زي كذا deathpickups في مود يجيك مع اللعبة اسمه
-
or لا عادي راح يعتبر اني أعرف القيمة لأول مرة اذا ما كانت موجودة, لأني حاط الشرط
-
ولا شي زي كذا يسوي لك تايمرات للمهمات missiontimer والله ما فهمت عليك تمام, بس للنسبة للمهمات في مود يجي مع اللعبة اسمه
-
Then you'll have to change the buttons varables' or it will be over writing .
-
Since you're using onClientRender, You can make the name color-coded by drawing it with dxDrawText function .
-
I don't think so ...
-
Not really, You need to make sure the element that entered the marker is a Player element using getElementType
-
طيب وش المشكلة ؟ يعني ما راح ننبشلك في الكود عشان نعرف .. قلنا أول شي المود وش يسوي, و قلنا وين طلعلك الخطأ, جيب الأخطاء في الديبق لو كان فيه عشان نقدر نساعدك
-
اذا كلنت كل واحد لحاله اذا سيرفر كلكم على كاونت واحد, الا اذا سويت جدول local hitCount = { } local marker = createMarker( x, y, z, "cylinder", 3, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker, function( element ) if getElementType( element ) == "player" then hitCount[element] = ( hitCount[element] + 1 ) or 1 if hitCount[element] == 1 then setElementPosition( element, x, y, z ) elseif hitCount[element] == 2 then setElementPosition( element, x, y, z ) elseif hitCount[element] == 3 then setElementPosition( element, x, y, z ) hitCount[element] = 0 end end end ) *Edit : root = marker ( Thx TheBest )
-
أو جرب المود اللي عطيتك فوق, اللي عدلته takeWeapon استخدم
-
يب زي X, Y وتحط كل شي بقيمة وحدة X, Y غير اسمهم, عشان لا تتلخبط بينهم و بين K1NG سبب ان