-
Posts
1,336 -
Joined
Everything posted by The Killer
-
جرب @ wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) bindKey ( "F2" , "down" , function() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(not isCursorShowing()) end ) addEventHandler("onClientGUIClick", getRootElement(), function () if source == SsSs then triggerServerEvent("createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function ( ) if ( Hunt[localPlayer] == false ) then if isPedInVehicle (vehicle) then outputChatBox("تم اصطياد سمكة", 255, 255, 0, true ) Hunt[localPlayer] = true else outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) end end end ) addCommandHandler( "givt", function ( ) if ( Hunt[localPlayer] == true ) then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) Hunt[localPlayer] = false else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end ) server # addEvent( "createTheVehicle", true ) addEventHandler( "createTheVehicle", root, function () vehicle = createVehicle(id, x,y,z) end) addEvent ("giveMoney", true) addEventHandler("giveMoney", root, function (player) givePlayerMoney(player, 40) end )
-
انت لو ضغط عليه بتلقى مثال بس بعطيك مثال ثاني none = guiCreateRadioButton(x,y,x2,y2,"none",false) if (guiRadioButtonGetSelected(none)) then givePlayerMoney(localPlayer, 55555)
-
خخخخ طيب فاهمك انا استخددم ذا guiRadioButtonGetSelected
-
ابو شنب ناقصك createBlipAttachedTo + التايمر انت مسويه ثانيه وهو يبيه دقيقتين ! صاحب الطلب جرب ! -- # Server Side ! local Timer = { } local marker = createMarker ( ....... ) createBlipAttachedTo(mrker, 21) addEventHandler("onMarkerHit",marker,function ( element ) if ( getElementType( element ) == "player" and not isPedInVehicle( element ) ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end Timer[element] = setTimer(givePlayerMoney,120000,0,element,math.random(100,500)) end end) addEventHandler("onMarkerLeave",marker,function ( element ) if ( getElementType( element ) == "player" ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end end end)
-
طبعا ماراح تقدر تركبها لأنها كلينت سوي ترايقر
-
جرب wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) bindKey ( "F2" , "down" ,function() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(not isCursorShowing()) end ) addEventHandler("onClientGUIClick", getRootElement(), function () if source == SsSs then faces = createVehicle ( 411, 1, 2, 3 ) end end ) addCommandHandler( "Hast", function ( player ) if ( Hunt[player] == false ) then if isPedInVehicle ( faces ) then outputChatBox("تم اصطياد سمكة", player, 255, 255, 0, true ) Hunt[player] = true else outputChatBox("لايمكنك اصطياد سمكة الى اذا بعته", player, 255, 0, 255, true ) end end end ) addCommandHandler( "givt", function ( player ) if ( Hunt[player] == true ) then givePlayerMoney ( player, 40 ) outputChatBox("بعت السمك وحصلت على 40", player, 255, 255, 0, true ) Hunt[player] = false else outputChatBox("انت ليس لديك سمك ابدا لبيعة", player, 255, 0, 255, true ) end end )
-
addEventHandler("onClientGUIClick", getRootElement(), function () if source == Button then faces = createVehicle ( id, X, y, Z ) end end ) addCommandHandler( "Hast", function ( player ) if ( Hunt[player] == false ) then if isPedInVehicle ( faces ) then outputChatBox("تم اصطياد سمكة", player, 255, 255, 0, true ) Hunt[player] = true else outputChatBox("لايمكنك اصطياد سمكة الى اذا بعته", player, 255, 0, 255, true ) end end end ) addCommandHandler( "givt", function ( player ) if ( Hunt[player] == true ) then givePlayerMoney ( player, 40 ) outputChatBox("بعت السمك وحصلت على 40", player, 255, 255, 0, true ) Hunt[player] = false else outputChatBox("انت ليس لديك سمك ابدا لبيعة", player, 255, 0, 255, true ) end end )
-
شباب بلييييييييييز الكل يدخل ويحللي المشكلة
The Killer replied to xxiAhmadxx's topic in Arabic / العربية
هو على فكره مب استضافه هو مستخدم الايديتور حق السيرفر الخاص الي مب اون لاين @xxiAhmadxx جرب سوه على الاستضافه -
يعطــيك آلعآفـــيه بــَـلآوي عَــلى الشَــرح آلكَــآفي آلوافِــي وأتمنى الي مَــآ كأن يفهم للويكــٍــي يكون فهم الحين !!
-
مدري انت وش سويت بس شكلك ضفت القوس بنفسك !! لأن مستحيل يشتغل كذا
-
end end end ناقص قوس الحدث addEventHandler ( "onMarkerHit", marker, function ( hitElement ) تصير كذا end end end ) اذا كلامي غلط شف الديبوق ')' expected (to close '(' at line 3) near ''
-
خخخخخخخخخخ زاحف فشلتنا الله يصلحك الرجال صادق ناقصك قوس الحدث
-
addEventHandler("onPlayerJoin", root, -- ببساطه هذا الحدث ما يشتغل الكود بدونه يعني مثلا تبي تسوي اذا واحد دخل يعطيه فلوس تستخدم هذا الحدثث addEventHandler("onPlayerJoin", root, -- مع الوظيفه function (player) givePlayerMoney(player, 55555) end ) مثال اخر addEventHandler("onPlayerWasted", root, -- اذا الاعب مات function (player) -- الوظيفه givePlayerMoney (player, 55555) end ) ببساطه الحدث يمثل الكود يعني تبي تسوي كود الحدث هو الي يعرفه يعني بدون الحدث ماراح يشتغل الكود يعني اذا تبي تسوي اذا الاعب مات او دخل وا ركب سياره او نزل من السياره كذا هذي كلها فوائد الحدث addEventHandler اسماء لبعضها onPlayerWasted > اذا الاعب مات onVehicleStartEnter > اذا ركب سياره onVehicleStartExit > اذا نزل من السياره onMarkerHit > اذا لمس الماركر onMarkerLeave > اذا طلع من الماركر onPlayerSpawn > -,- اذا الاعب جاه سباون الي هو اختصار اذا مات وتسذا وفيه احداث بالكلينت طبعا ماراح تشتغل هذي الاحداث غير في الكلينت onClientPlayerWasted > اذا الاعب مات onClientVehicleStartEnter > اذا واحد ركب السياره onClientVehicleStartExit > اذا نزل منها onClientMarkerHit > اذا لمس الماركر onClientMarkerLeave > اذا طلع منه onClientPlayerSpawn > اذا انتقل
-
انا مره حذفت صفحتي وسويت وحده جديده ولقيت السريال متغير خخخ!! سويتها مره ثانيه ما عاد تغير
-
كل عام وانتم بخير !
-
استخدم Event # 'onClientGUIClick' function # guiCheckBoxGetSelected else return outputChatBox