-
Posts
4,429 -
Joined
-
Last visited
Everything posted by #DRAGON!FIRE
-
روابط ^ .. يمديكـ تسوي صورة عن طريق رابط بـ استخدم .. : fetchRemote بـ النسبة تجيب ملف من خارج المود .. وضح اكثر
-
* لول للحين لاحظت انه حاط هنا .. : MAX_PLAYERS = get("*MAX_PLAYERS") العلامة هذي تحطها بـ الميتا يوم تعرف الستنج فقط ما يحتاج تحطها هنا
-
حياك الله بـ اي وقت .. ^
-
+ setTimer- killTimer
-
لا تحسب لو معتزل يمديكـ تسرقه > < .. وهذا الكود حق حسن مية بـ المية ذذ
-
addEvent( "Hajwalah", true ) addEventHandler( "Hajwalah", root, function( ) if ( isElement ( enksar[source] ) ) then destroyElement( enksar[source] ) enksar[source] = nil setPlayerTeam( source, Team ) end end )
-
Client Side ! < بــ جانب كلنت لو ما فهمت قصدي انه بـ اول سطر انه تضعها مع كود فتح النافذة .. : واللاعب يفتح النافذة تحط اول سطر به زي كذا مثال bindKey يعني اقصد يوم تسوي فنكشن الـ bindKey( "F2", "down", function ( ) guiSetVisible ( element, not guiGetVisible( element ) ) showCursor( guiGetVisible( element ) ) getGroups ( ) -- ضعها بـ كود فتح النافذة end ) getGroups ( ) -- ضعها بـ كود فتح النافذة function getGroups ( ) triggerServerEvent( "GetallGroups", localPlayer ) end addEvent( "UpGroups", true ) addEventHandler( "UpGroups", root, function( allGro ) guiGridListClear( Grid ) for _,Groups in ipairs ( allGro ) do local row = guiGridListAddRow( Grid ) guiGridListSetItemText( Grid, row, 1, tostring( Groups.groupName ), false, false ) end end ) Server Side ! < بـ جانب سيرفر function allGroups() local Row = executeSQLQuery("SELECT * FROM Gangs") if ( type( Row ) == "table" and #Row == 0 or not Row ) then return {} else return Row end end addEvent( "GetallGroups", true ) addEventHandler( "GetallGroups", root, function( ) local Groups = { } for _,NameGroups in ipairs ( allGroups( ) ) do table.insert( Groups, {groupName = NameGroups.Name} ) end triggerClientEvent( source, "UpGroups", source, Groups ) end )
-
+ خاطء executeSQLInsert استخدمك لـ getGroups ( ) -- ضعها بـ كود فتح النافذة function getGroups ( ) triggerServerEvent( "GetallGroups", localPlayer ) end addEvent( "UpGroups", true ) addEventHandler( "UpGroups", root, function( allGro ) guiGridListClear( Grid ) for _,Groups in ipairs ( allGro ) do local row = guiGridListAddRow( Grid ) guiGridListSetItemText( Grid, row, 1, tostring( Groups.groupName ), false, false ) end end ) function allGroups() local Row = executeSQLQuery("SELECT * FROM Gangs") if ( type( Row ) == "table" and #Row == 0 or not Row ) then return {} else return Row end end addEvent( "GetallGroups", true ) addEventHandler( "GetallGroups", root, function( ) local Groups = { } for _,NameGroups in ipairs ( allGroups( ) ) do table.insert( Groups, {groupName = NameGroups.Name} ) end triggerClientEvent( source, "UpGroups", source, Groups ) end )
-
استخدم get ومع تعريف الستنج بـ الميتا ذذ
-
بـ حفظ القروبات ؟ ذذ ( SQL ) اطرح الاكواد كاملة .. واللي يهمني انه مستخدم
-
addCommandHandler table isElement destroyElement createMarker Event : "onMarkerHit" setElementHealth
-
الكود مهو كامل .. وضح طلبك وش تبي بـ الضبط
-
كـــنت فاضي وسويته لكـ .. : local marker = createMarker ( .... ) local vehicle = { } local vehicles = { id, id, id } addEventHandler ( "onMarkerHit", resourceRoot, function( element ) if ( source == marker ) then if ( getElementType( element ) == "player" ) then if ( isElement( vehicle[ element ] ) ) then destroyElement ( vehicle[ element ] ) vehicle[ element ] = nil end local iD = tonumber( vehicles[math.random(#vehicles)] ) vehicle[ element ] = createVehicle( iD, x, y, z ) if ( vehicle[ element ] ) then warpPedIntoVehicle( element, vehicle[ element ] ) end end end end ) addEventHandler( "onPlayerQuit", root, function( ) if ( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) vehicle[ source ] = nil end end ) addEventHandler( "onVehicleExplode", resourceRoot, function( ) setTimer( destroyElement, 2000, 1, source ) end )
-
الله يعافيكـ .. امين ذذ
-
createMarker setTimer outputChatBox setElementData getElementData createTeam setPlayerTeam setElementPosition getPlayerTeam getPlayersInTeam --- with loop getAlivePlayers givePlayerMoney
-
getElementType : This function is used to retrieve the type of an element. .. بـ اختصار هي تتحق لك من نوع الالمنت .. نستخدمها يوم يخش الماركر عشان تتحق من الشي اللي دخل الماركر ممكن يكون سيارة او لاعب او صوت الخ isElement : This function checks if a value is an element or not. ذا بسيط جدا .. وهو يتحقق لك من وجود الالمنت > يعني مثلا تحتاجه هنا بـ الكود مثلا يوم يدخل الماركر تتحق انه كان معاه من قبل السيارة وتسوي لها ديستروي اي شي ما فهمته تفضل اسال .
-
+ getElementType - isElement - destroyElement
-
كيف يعني بـ سياارة وتجيه سيارة . !؟
-
في طريقة افضل من الرندر .. من باب تخفيف اللاق addEventHandler( "onClientResourceStart", resourceRoot, function( ) guiSetText( element, "YourName"..getPlayerName( localPlayer ) ) end ) addEventHandler ( "onClientPlayerChangeNick", localPlayer, function ( _,newNick ) guiSetText( element, "YourName"..newNick ) end )
-
function SelectSkin () setElementInterior ( getLocalPlayer( ), 0, 0, 0, 0 ) setCameraMatrix( 3878.8999023438, -1610.0999755859, 17.1, 3878.9900488281, -1607.4000244141, 16.5) skin = createPed ( StartSkin, 3878.9900488281,-1608.4000244141,16.3,180 ) setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) fadeCamera( true, 5 ) setTime(0,0) SkinSelectMusic = playSound(SkinMusic,true) bindKey("arrow_r","down",NextSkin) bindKey("arrow_l","down",LastSkin) bindKey("lshift","down",SpawnPlayer) addEventHandler( "onClientRender", getRootElement(), AnnounceSkinJob ) showCursor(true) end addEventHandler( "onClientResourceStart", resourceRoot, function( ) SelectSkin() FreezeBots() end ) بـ النسة للدوران فـ يبي لها سالفة وتاكد ان الكود شغال مية بـ المية فـ حاول تسويه بـ نفسك ذذ
-
ولله لو اي كود ما فيه ضرب وقسمة فـ ما يمشي اني احط لك هو وخلاص .. لازم تجرب وتنقص وتزود لين يضبط ذذ
-
اعيد واكرر كلامي .. لو الشخص يعرف كل معلومات الـ حساب ما يمديه يدخله
-
مو هذي يـ الحبيب ^ .. .... ( gui.lua ) ادخل ملف local facing = 0 function rotateCameraAroundPlayer( ) local x, y, z = getElementPosition( getLocalPlayer() ) if isPedInVehicle( getLocalPlayer( ) ) then x, y, z = getElementPosition( moddingVeh ) else fixedCamera( false ) removeEventHandler( "onClientRender", getResourceRootElement( ), rotateCameraAroundPlayer ) end local camX = x + math.cos( facing / math.pi * 180 ) * 5 local camY = y + math.sin( facing / math.pi * 180 ) * 5 --setCameraPosition( camX, camY, z+1 ) --setCameraLookAt( x, y, z ) --use for dp3: setCameraMatrix( camX, camY, z+1, x, y, z ) facing = facing + 0.0002 end زي ما قلت لكـ .. فيها حسابات وشف الاكواد كلها ضرب وقسمة ذذ