Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 26/05/17 in Posts

  1. #قمة_الاخلاق السيده عائشه سألت النبي : مين أكتر واحده بتحبها في زوجاتك يارسول الله ؟؟ فقال لها : أنت ياعائشه ...فقالت : إذا أخرج عليهن وأخبرهن جميعا ، فضحك النبي وأعطاها تمرة ، وقال لها في الليل أجمعهن وأخبرهن ، ولا تخبري أحدا أني أعطيتك تمرة وإنصرف ومر علي كل واحدة من زوجاته وسألها عن أحوالها ، وأعطي كل واحدة منهن تمرة وأخبرها ألا تخبر أحدا ، وفي الليل إجتمعن وسألته عائشه : أي من زوجاتك تحب أكثر ؟! فأبتسم النبي وقال : صاحبة التمره ، فهي من أحبها أكثر فابتسمن جميعا وفرحت كل واحده بداخلها وفرحت كل واحده لحب رسول الله لها..... وانك لعلى خلق عظيم. النبى محمد اعظم خلق الله اللهم اجمعنا به فى الجنة.
    2 points
  2. Well, flags are sort of easy to understand the more you break them down. First of all you have to know how a computer handles numbers, in particular integers. So let me give you the super basic rundown... Let's for example take the number 1337 as a Base10 number, what we usually work with. Now in Base16, also called Hex it would be, 539. Why hex you may ask, well one hex digit has exactly 1 byte. That being said the number would be 0101 0011 1001 in Base2, also known as Binary. Why all this? Well flags are stored as integer numbers, however their data is hidden in their binary form. Each bit stands for something that can be toggled on or off, being 1 or 0 respectively. Now since each bit is a different number you can have all of them in a different state. Let's take this for example: 1 (0001) - is van 2 (0010) - is bus 4 (0100) - is low 8 (1000) - is big Given these values: 1 van 2 bus 3 "van bus" 4 low ... 15 "low big van bus" GTA expands on that, taking 8 bytes and making them into one number, resulting in a full int_32 integer number.
    2 points
  3. The code above should work. The problem was I didn't convert the JSON back to Lua (the SDK sends arrays as JSON). (too much time passed for me to edit and append this message to the post above -.-) Also, you may wish to check response.connect_status when deciding whether to grant permission to log in. This value will be either "SUCCESS" or "VALIDATING", so you may block logins from accounts which haven't confirmed their email yet.
    2 points
  4. Suh dude, I have this strange problem with setting the rotation of the tires on a vehicle. I'm trying to adjust the camber of the tire but without any success so far. This is my current code: The camber variable is the position of a scrollbar. The variable frontcamber outputs the right rotation set but on the vehicle itself there is no visible change. local veh = getPedOccupiedVehicle(localPlayer) local frontRightTire = "wheel_rf_dummy" local frontLeftTire = "wheel_lf_dummy" local backRightTire = "wheel_rb_dummy" local backLeftTire = "wheel_lb_dummy" local mincamber = 0 local maxcamber = 30 if camber == 0 then setVehicleComponentRotation( veh, frontRightTire, 0, 0, mincamber ) setVehicleComponentRotation( veh, frontLeftTire, 0, 0, mincamber ) setVehicleComponentRotation( veh, backLeftTire, 0, 0, mincamber ) setVehicleComponentRotation( veh, backRightTire, 0, 0, mincamber ) elseif camber == 100 then setVehicleComponentRotation( veh, frontRightTire, 0, 0, maxcamber ) setVehicleComponentRotation( veh, frontLeftTire, 0, 0, maxcamber ) setVehicleComponentRotation( veh, backLeftTire, 0, 0, maxcamber ) setVehicleComponentRotation( veh, backRightTire, 0, 0, maxcamber ) elseif camber>0 and camber<100 then local acccamber = interpolateBetween(mincamber,0,0,maxcamber,0,0,camber/100,"Linear") setVehicleComponentRotation( veh, frontRightTire, 0, 0, acccamber, "world") setVehicleComponentRotation( veh, frontLeftTire, 0, 0, acccamber, "world") setVehicleComponentRotation( veh, backLeftTire, 0, 0, acccamber, "world") setVehicleComponentRotation( veh, backRightTire, 0, 0, acccamber, "world") local frontcamber = getVehicleComponentRotation(veh,frontLeftTire) outputChatBox(frontcamber) end
    1 point
  5. السسسلام عليكككم , كيف حالكم عساكم بخير وطيبين ؟ ونقول لكـــــــــــــــم باك من جديد والله لكم وحشة , زمااان عنكم ايش اخبار اللعبة ؟ نزلو تحديثات واشياء جديدة ولا باقي ؟ ترقبوا عودتنا بأحدث الحصريات إن شاء الله ورمضان كريم وكل عآم وانتم بخير #تحياتي
    1 point
  6. يا حيالله بروس تسلم يالغالي وانت بخير ان شاء الله
    1 point
  7. É, eu percebi testando aqui que não funciona... Tenta isto: string.gsub(text, "%p", "")
    1 point
  8. شكلها كانت تجرب بس الفايرس وخربت نص العالم ، اجل كيف لو صارت حرب ض2
    1 point
  9. aBlip , aCounter = { } , { } function createFlashingBlip ( Player , iCon , xPos , yPos , Number ) if ( getElementType ( Player ) == 'player' and type ( iCon ) == 'number' and type ( xPos ) == 'number' and type ( yPos ) == 'number' and type ( Number ) == 'number' ) then aBlip [ Player ] , aCounter [ Player ] = nil , 0 setTimer ( function ( Player ) setTimer ( function ( Player ) if ( isElement ( aBlip [ Player ] ) ) then destroyElement ( aBlip [ Player ] ) aCounter [ Player ] = aCounter [ Player ] + 1 if ( aCounter [ Player ] == 20 ) then aBlip [ Player ] = createBlip ( xPos , yPos , 0 , iCon ) setElementData ( aBlip [ Player ] , 'Owner' , Player ) setElementData ( aBlip [ Player ] , 'Number' , Number ) end end end , 50 , 1 , Player ) aBlip [ Player ] = createBlip ( xPos , yPos , 0 , iCon ) end , 200 , 20 , Player ) end ------------- ----------- ---- function getFlashingBlip ( Player , iCon , Number ) if ( getElementType ( Player ) == 'player' and type ( iCon ) == 'number' and type ( Number ) == 'number' ) then for _ , v in ipairs ( getElementsByType ( 'blip' ) ) do local Owner , aNumber = getElementData ( v , 'Owner' ) , getElementData ( v , 'Number' ) if ( getBlipIcon ( v ) == iCon and Owner == Player and aNumber == Number ) then return v end end end return false end سلام عليكم اليوم اطرح لكم وظيفتين بمناسبه حلول شهر رمضان الكريم , بالبدايه كل عام وانتم بخير , واسف لو في اخطاء ( جوال )- المهم الفكره أنها تسوي لك بليب ( علامه ) تختفي و تظهر بسرعه بغرض لفت نظر الاعب لهأ Server Side ولكل علامه تسوي لها رقم معين عشان تستدعي العلامه عبرهأ مثل مأ تلاحظون في xPos , yPos مأفي z لآنه مأله أهميه للعلآمه , المهم createFlashingBlip ( Player , iCon , xPos , yPos , Number ) الاعب و اي دي العلامه و الاحدثيات و الرقم الخاص عشان تستدعي العلامه و عشان تستدعيها مثلا destroyElement ( getFlashingBlip ( Player , iCon , Number ) ) و تعبي الباينات أترككم للتجربه يا ليت اي خطء او بق خبروني
    1 point
  10. الله يرحم اللي علمك اللغة العربية
    1 point
  11. ومادراكم من الممكن يوما ما ستحتاجون هذه الوضيفة
    1 point
  12. Si me atribuyes tal superioridad, es por algo y no es mi problema. Esperaba un comentario con la seriedad que se espera en esta clase de hilos. No es sano creerse superior a otros en un juego, pero más grave me parece atribuir tales características gratuitamente a alguien que en ningún momento lo pretendía. Por desgracia para ti, no soy de la clase de usuarios que reporta o floodea el /b, así que o estás generalizando o estás tirando alguna indirecta desde el desconocimiento a un usuario que no está aquí. Yo no diría estancados porque el rol ha mejorado enormemente este último tiempo. Sobre los sistemas, desde mi humilde opinión, poco me importan si no aportan realmente al rol. Y te faltó citar el sistema de hambre y sed. Al contrario, los 60 usuarios que no saben rolear estarán llorando por /b. Me gustaría que me digas cuál es la necesidad de demonizar tanto a los que tienen buen nivel de rol. Si tienes algún rencor hacia uno de ellos guárdatelo para ti porque este no es el post para ello, que si continúan con sus indirectas y esa clase de respuestas veo muy probable que nos cierren el hilo, lamentablemente.
    1 point
  13. كود انشاء سيارة بالكلينت حاطينه ممكن تبي تسوي سيارة منظر كذا ماتبي احد يركبها يختصر لك , وبالنسبة لنقل البيد او الاعب للسيارة مايأثر لانه تقدر تنقل بيد لسيارتك بالكلينت
    1 point
  14. السيارة بالكلينت ماتقدر تركبها لازم ترايقر للسيرفر وبعدين تحط نفسك وتحط السيارة في الدمنشن ولاتنسى الجداول
    1 point
  15. ياهو يالأجنبي "مافي مشكل "في الطريقة الاحترافية احنا دائما نروح للأشياء السهلة والسريعة ..................... م ابغى اكثر كلام واللهي
    1 point
  16. شرح ناقص ل download اعطيت مباشرة الكود وحطيته بنفسك هيك توزع اكواد وللمرة الثانية هذا يخلي الملف مايتحمل ابدأ وليس مخفي صحح معلوماتك
    1 point
  17. .luac files are made like that for a reason. And the reason is that the authors of those scripts don't want anyone else to edit or steal their code. I myself find such compiled resources pure :~ as most of the times the resource itself is great but I can't change a few simple things like position of the elements for example, thus rendering it unusable at my server But you can always try out a compiled resource, see what it does and release an uncompiled version made by yourself for those like me who only want to edit a few things and not steal the script
    1 point
  18. function UserLogin(userName,Password,Checksave) if not (userName == "") then if not (Password == "") then fetchRemote("http://forums.link.com/login.php", function(response,errno,player) local response = fromJSON(response) if type(response) == "table" then if response.status == "SUCCESS" then triggerClientEvent(player,"loginHide",getRootElement()) triggerClientEvent(player,"showNotification",player, "Successfully logged in!", "success") UserData("success", data["member_id"], data["name"], player, userName, Password, Checksave) else if response.msg == "ACCOUNT_NOT_FOUND" then triggerClientEvent(player,"showNotification",player, "Account doesn't exist!", "error") elseif response.msg == "ACCOUNT_INVALID_PASSWORD" then triggerClientEvent(player,"showNotification",player, "Password doesn't match!", "error") else outputDebugString("UNRECOGNISED RESPONSE @ "..getPlayerName(player)"'s login attempt.") end end elseif response == "ERROR" then triggerClientEvent(player,"showNotification",player, "Internal error. Please try again later. (Code "..errno..")", "error") outputDebugString("INTERNAL ERROR "..errno.." @ "..getPlayerName(player)"'s login attempt.") else outputDebugString("PARSING ERROR @ "..getPlayerName(player)"'s login attempt.") -- maybe the response was sent in a way other than a table, but its not an error either end end , toJSON({user=userName, pass=Password}), false, source) else triggerClientEvent(source,"showNotification",source, "Please enter your password!", "error") end else triggerClientEvent(source,"showNotification",source, "Please enter your username!", "error") end end addEvent("UserWantToLogin",true) addEventHandler("UserWantToLogin",getRootElement(),UserLogin) function UserData(Status,UserID,uName,player,userName,Password,Checksave) if Status == "success" then if not getAccount (UserID) then acc = addAccount(tostring(UserID),tostring(Password)) end if not getAccount(UserID,Password) then setAccountPassword(getAccount(UserID),Password) end local acc = getAccount ( UserID,Password) if(not isGuestAccount(acc)) then logOut(player); end logIn (player, acc, Password) setElementData(player,"getForumID",UserID) setElementData(player,"getForumName",uName) end end
    1 point
  19. executeSQLQuery or dbConnect - dbExec - dbFree - dbPoll ..... createMarker onResourceStop onResourceStart guis Elements
    1 point
  20. Please try this version: https://nightly.multitheftauto.com/multitheftauto_linux_x64-1.5.4-rc-11354.tar.gz Ensure you add the following mtaserver.conf before restarting: <enable_diagnostic>CallEvent</enable_diagnostic>
    1 point
  21. العفو يقلبي الله يعافيك بالتوفيق لا تنساني من دعواتك في رمضان +_+
    1 point
  22. 1 point
  23. في واحد قالي شغله ومانب متأكد منها وهل هو صحيح او كاذب ما ادري لكن قالي في اندكس تحطه في ملفات التحميل ويظهر لك ملفات الكلينت يوم تستخدم الكاش فولس وما ادري والله واعتقد كلامه غير صحيح فـ ممكن الطريقة هذي تنفع لو كلامه صحيح وانا برجع اكلم واقوله الكلام صحيح ولا لا والله اعلم ccw
    1 point
  24. شكرا على رايك :* local Check = { [ 'window' ] = true , [ 'button' ] = true , [ 'label' ] = true , [ 'memo' ] = true , [ 'combobox' ] = true , [ 'radiobutton' ] = true , [ 'edit' ] = true , [ 'tab' ] = true , [ 'tabpanel' ] = true } function guiGetElement ( Name , Type ) if ( type ( Name ) == 'string' and Check [ Type ] ) then for _ , v in ipairs ( getElementsByType ( 'gui-' .. Type ) ) do if ( guiGetText ( v ) == Name ) then return v end end end return false end
    1 point
  25. UPD: Проблема решена проблема была в функции restoreModel (Я позволяю игрокам выгружать/загружать модели чтобы они могли освобождать память в ущерб текстуркам) Суть решения: Вместо engineRestoreModel() использую destroyElement() (Удаляю загруженную engineLoad'oм дффку/тхдшку) И, кстати, видимо этот баг появляется только когда даешь engineLoad'у raw-data, ибо когда я просто грузил модели методом engineLoad('file.txd') то утечки никакой не было, из чего и решил что проблема в string.sub/fileOpen
    1 point
  26. Section Rules 1. Any fulfilled requests or discarded offers shall be reported via the report system in order to be locked and/or archived. This is mandatory, as the goal is to keep this section as clean and accurate as possible. 2.Topics must have a sufficient description of what are you offering or looking for. Eg. if you're looking for a scripter for your gamemode, you must detail what would you need the scripter for. This doesn't exactly involve giving away the whole concepts or whatever you don't want to disclose to the public, but it would be appreciated if you could include more details than just straight single line offers, such as "I need a scripter for a zombie gamemode". Whether or not the amount of detail is sufficient for the nature of your request is a subject to moderator judgement, and failing to meet criteria may result in your post being discarded. Formatting your topic In order to keep the section clean, accurate and easily viewable, it would be appreciated if you could use the following guidelines for your topic: 1. Topic titles should have the form [LF/OFFERING] Brief description [Paid/Non-Paid]. Please make the description as brief as possible here. Eg: [OFFERING] Skilled scripter [Paid] [OFFERING] Rookie modeller looking for some practice [Non-paid] [LF] Any-level scripter for a small server [Non-Paid] 2. The first post should be written in at least 2 parts: first part should contain a brief description of yourself (and/or the server or community you are from) second part should elaborate on what are you requesting/offering, once again, as detailed as you possibly can/want
    1 point
  27. Some one had some free time.
    1 point
×
×
  • Create New...