-
Posts
1,992 -
Joined
-
Last visited
-
Days Won
4
Everything posted by 3NAD
-
منيب مرتاح من كودك addEventHandler ( "onVehicleStartExit", root, function ( plr ) if Vehicle[plr] and Vehicle[plr]['myVehicle'] and isElement ( Vehicle[plr]['myVehicle'] ) then cancelEvent( true ) end end ) اظن لو تحققت الشروط السابقة - جداول اللاعب موجودة - السيارة موجودة مراح تنزل من أي سيارة ثآنية ابد
-
لم يتم التجربة -- Client Side addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if ( getPlayerMoney ( ) >= 2350 ) then triggerServerEvent ( "nothing", localPlayer, localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end elseif source == GUIEditor.button[1] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) elseif source == GUIEditor.button[2] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) if not guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[2], true ) showCursor ( true ) end elseif source == GUIEditor.button[4] then guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) end end ) -- Server Side Vehicle = { } addEvent ( "nothing", true ) addEventHandler ( "nothing", root, function ( player ) if not Vehicle[player] then Vehicle[player] = {} end if isElement ( Vehicle[player]['myBilp'] ) then destroyElement(Vehicle[player]['myBilp']) elseif isElement ( Vehicle[player]['myVehicle'] ) then destroyElement(Vehicle[player]['myVehicle']) end Vehicle[player]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) warpPedIntoVehicle(player,Vehicle[player]['myVehicle']) Vehicle[player]['myBilp'] = createBlipAttachedTo ( Vehicle[player]['myVehicle'], 9 ) setElementModel ( player, 45 ) takePlayerMoney ( player, 2350 ) end )
-
اي قروب المهم انه يقدر يصك ميوت وباند
-
صلاحيات Console عط يوزر
-
Spam Posts, Deleted. ردود مالها فايدة .. بعد ردي هذآ إحتمآل تنحظر العضوية #
-
addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if getPlayerMoney ( localPlayer ) >= 2350 then triggerServerEvent ( "nothing", localPlayer, localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end end end ) وليه مسوي ترايقرين ؟؟ اجمع الوظيفتين بترايقر واحد -- ^ الغلط هو اني نسيت احطه بالأرقومنت triggerServerEvent ( "nothing", localPlayer, localPlayer )
-
-- Client Side addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[3] then if getPlayerMoney ( ) >= 2350 then triggerServerEvent ( "nothing", localPlayer ) guiSetVisible ( GUIEditor.window[2], false ) showCursor ( false ) else return outputChatBox ( "You do not have enough money !", 255, 0, 0, true ) end end end ) -- Server Side addEvent ( "nothing", true ) addEventHandler ( "nothing", root, function ( player ) takePlayerMoney ( player, 2350 ) end )
-
for _,player in ipairs(getElementsByType("player")) do outputChatBox("CustomChat : " .. tostring(PlayerName) .. ": " .. tostring(message), player,r,g,b) end outputChatBox ( "CustomChat : " ..PlayerName.. ": " ..message, root, r, g, b )
-
ماله داعي تجيبهم من الجدول getRootElement ( ) -- كآفي
-
fadeCamera -- الشاششة سوداء guiCreateLabel -- ليبل كتابي setTimer -- مؤقت guiSetText -- تغيير النص guiCreateButton -- زر
-
رآجع القوانين إذا بتطرح موضوع مرة ثانية
-
createMarker "onMarkerHit" isObjectInACLGroup setElementPosition + لاحظت علاك لو تبي تسأل بـ نفس الأكواد تفك موضوع جديد بدال ماتحط رد على نفس الموضوع ! Quick Reply إذا ماتعرف شف تحت كلمة
-
مآلك حاجة بالتريقر .. استخدم "onMarkerHit" -- Server Side getElementType -- شرط إثبات ان اللي لآمس الماركر لاعب isPedInVehicle -- شرط وجود الشخصية داخل السيارة
-
addEventHandler ( "onPlayerWasted", root, function ( ) if getPlayerMoney ( source ) >= 500 then takePlayerMoney ( source, 500 ) end end )
-
جرب ..
-
مآلكـ حاجة تحط else لأنه لو ماتحقق الشرط ماراح ينفذ الوظيفة اصلاً
-
إي صحيح لو تحقق الشرط وكان اللاعب عنده أكثر من 500 رآح يسحب منه 500 ولو ماتحقق مآراح يصير اي شيء
-
كودك صحيح وبالنسبة لـ سؤالك ترآه واضح من اسمه onClientPlayerWasted + انصحك تسوي شروط لأن لو كآنت فلوس اللاعب مصفرة رآح يسحب منه وتصير بالسسآلب يعني إستخدم getPlayerMoney
-
تخيل اللاعب لمس الماركر وفصل النت عنده او خرج من السيرفر رآح يقلكـ Bad Argument @ getElementPosition
-
درينا انك خبره خلاص .. شآيفني جآلس افهمه اغلاطه وابيه هو يصححها بـ نفسه وشهو له تجي وتحطه جاهز ؟
-
Source : The source of this event is the player that died or got killed. يعني ان العنصر هنا هو اللاعب الميت