-
Posts
740 -
Joined
-
Last visited
Everything posted by al-Kobra
-
'onPlayerDamage' setControlState toggleAllControl getElementPosition getDistanceBetweenPoints3D setElementData -- هذي عشان اذا ضربه ما تخلي احد يضربه مرة ثانية getElementData -- ^ createMarker 'onMarkerHit' setElementVisibleTo setTimer > setElementPosition
-
الاكواد هريسة .. بعدين كيف حاتط بالحفظ سرياله والاكاونت حقه ؟ بعدين كل ذا المقصود منه انك ماتخليه يضغط اكثر من مرة .. وتقدر تسويه كلنت بسطرين ليش كل ذا .. انا اتكلم على السكل بحفظ عدد الاصوات ذذ توقعت ان فيه اغلاط ,, وهذا بس مثال على السكل
-
مثال لوول #Client Side : addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("kobra1",localPlayer ) elseif ( source == GUIEditor.button[1] ) then triggerServerEvent("kobra2",localPlayer ) guiSetVisible (GUIEditor.window[1], false) showCursor(false) end end ) #Server Side : addEventHandler ( "onResourceStart", resourceRoot, function ( ) local create = executeSQLQuery ( "CREATE TABLE IF NOT EXISTS xAnti_Click ( AccountName TEXT, Serial TEXT )" ); if ( create ) then outputDebugString ( "Connected Done !." ); end end ) addEvent("kobra1",true) addEventHandler("kobra1", root, function( ) if ta7qq ( getAccountName ( getPlayerAccount ( source ) ) ) == false then insert ( getAccountName ( getPlayerAccount ( source ) ), getPlayerSerial ( source ) ) outputChatBox ( "تم ضغط الزر ,, ولا يمكن ضغطه مرة اخرى", source, 255, 0, 0, true ) cancelEvent ( ) end end ) addEvent("kobra2",true) addEventHandler("kobra2", root, function( ) if ta7qq ( getAccountName ( getPlayerAccount ( source ) ) ) == true then outputChatBox ( "لا يمكنك ضرب الزر ,,", source, 255, 0, 0, true ) cancelEvent ( ) end end ) insert = function ( AccountName, Serial ) if not AccountName then return end if not Serial then return end return executeSQLQuery ( "INSERT INTO xAnti_Click(Name,Serial) VALUES(?,?)", tostring ( Name ), tostring ( Serial ) ); end ta7qq = function ( AccountName ) if not AccountName then return end local result = executeSQLQuery ( "SELECT * FROM xAnti_Click WHERE AccountName = ?", tostring ( AccountName ) ); if ( type ( result ) == "table" and #result == 0 or not result ) then return false else return true end end
-
يتحقق ان اذا ضرب الزر من قبل ,, يكنسل الايفنت
-
لوول شلون غلط ؟ عدلت بلاير ,, + هو ما قال يبغيه ينحفظ + شلون مو مثل طلبه ؟
-
addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[1] ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local Name = guiGridListGetItemText( GUIEditor.gridlist[1], selectedRow, selectedCol ) if Name == "start war" then triggerServerEvent("kobra1",localPlayer, Name) guiSetVisible (GUIEditor.window[1], false) showCursor(false) end end end end) addEvent( "koobra1", true ) addEventHandler( "koobra1", root, function ( mm ) guiGridListSetSelectedItem ( GUIEditor.gridlist[1], selectedRow, 2) end addEvent("kobra1",true) addEventHandler("kobra1", root, function( Name ) local who = getElementData(source,"gang") if ( who == Name ) then local mm = setElementData( who, "Test", getElementData( who, "Test" ) + 1 ) triggerClientEvent ( "koobra1", source, mm ) end end ) جرب
-
هذا شسمه يحط موتر بس لكن اللاعب ما يدخل الموتر $ Postby The Best on Wed May 01, 2013 2:25 pm ,,
-
التصويت تسويه بالالمنت داتا setElementData والقروبات مافهمتها ض1 واذا تضرب مرة ويتقفل guiSetEnabled
-
الكود غلط . bindKey ( "Key Name", "down", function( ) guiSetVisible ( Your window, not guiGetVisible ( Your window ) ) showCursor ( guiGetVisible ( Your window ) ) end ) تم التعديل ,,"مانتبهت للتحقق مال الزر"
-
Gui Editor يسوي اللوحة لوول واذا تقصد انها تفتح بزر function openWnd () guiSetVisible ( اسم اللوحة, not guiGetVisible ( اسم اللوحة ) ) showCursor ( guiGetVisible ( اسم اللوحة ) ) end bindKey ("اسم الزر الا يفتح","down",openWnd) جرب
-
function m(plr) setPedAnimation( plr, "ped", "WOMAN_walknorm") end addCommandHandler("sas", m) المثال في الويكي ,, بس انا عدلت عليه
-
محطوط في الكود
-
addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[1] ) then setElementData( localPlayer, 'Datafix', end end ) if ( source == GUIEditor.button[1] ) then هذا الكود عشان ياخذ الوظيفه له والكود الا يبغيه اذا كان ماخذ وظيفه يصلح
-
givePlayerMoney takePlayerMoney هو يبغي يسوي وظيفة
-
function fixing (plr) local tV = getPedOccupiedVehicle ( plr ) if tV then local tP = getVehicleController ( tV ) if tP and getElementHealth ( tP ) < "1000" then fixVehicle ( tV ) givePlayerMoney ( plr, 500 ) end addCommandHandler ( "الكلمة", fixing ) جرب
-
wnd = guiCreateWindow(198,142,455,261,"[ بقآلةة فنون الهجولة من قبل انكسآر ]",false) img1 = guiCreateStaticImage(9,21,137,200,"1.png",false,wnd) img2 = guiCreateStaticImage(156,20,137,202,"2.png",false,wnd) img3 = guiCreateStaticImage(302,19,137,203,"3.png",false,wnd) war1 = guiCreateButton(35,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war1,"default-bold-small") war3 = guiCreateButton(337,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war3,"default-bold-small") war2 = guiCreateButton(184,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war2,"default-bold-small") guiSetVisible ( wnd, false ) < مكان وضع الكود كذا
-
بالنسبة للفلوس فـ تقدر .. وتقدر تححفظ كل شي فيه .. وبالنسبة لو قفلته .. شي طبيعي اخر عدد انحفظ ما ينحفظ بعده لانك انت لو بتسوي حفظ الفلوس اكيد ما بتكون الفلوس ثابتة متغير فـ انت تسوي بأكوادك حفظ وتحديث الخ طيب استخدم أكاونت داتا ولا آس كيو لايت ؟؟ مين أحسن يعني ؟! اكاونت داتا اسهل لك
-
لوول ليش 2 end ? addEventHandler("onPlayerJoin", root, function() setElementDimension ( source, 99 ) end ) addEventHandler("onClientResourceStart", root, function() if isTransferBoxActive() == false then setTimer( setElementDimension, 100, 1, localPlayer, 0 ) end end ) غير مجرب
-
addEventHandler("onClientGUIChanged", Edit, function() if guiGetText ( source ) > 500 then guiSetText ( source, 500 ) end end ) هذا اذا العدد اكثر من 500 يخليه 500 ,, بالنسبة للطلب الثاني addEventHandler("onClientGUIClick", Edit, function() if guiGetText ( Edit ) ~= "" then guiSetText ( source, "" ) end end ) هذا مو متأكد منه ,, بس جربه
-
#~[K.L] Battlefield Capture The Flag [ KSA - USA] Arabic/Eng
al-Kobra replied to ALw7sH's topic in Arabic / العربية
بالتوفيــــق الحب ض1 -
يعطيك العافية ان اشتغل او ماشتغل الله يوفقك دنيا واخره على المساعده امين تسلم حبيبي
-
جرب , addEventHandler ( "onPlayerTarget", root, function ( targetElem ) bindKey (source,"j","down", function( ) local rx,ry,rz = getElementPosition(source) local ax,ay,az = getElementPosition(targetElem) if targetElem and getElementType ( targetElem ) == "player" and getDistanceBetweenPoints3D(rx,ry,rz,ax,ay,az) <= 4 then local wep = getPedWeapon( targetElem ) if ( wep ) then nammo = getPedTotalAmmo( targetElem ) takeWeapon( targetElem, wep, nammo ) giveWeapon( source, wep, nammo) end end end ) end )
