Jump to content

Bssol

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Bssol

  1. Bssol

    طلب

    وش دخل هذي بانك تعرف الطريقة؟؟؟ يعني لو عرفت بتنحل المشكلة؟؟؟؟ وايضا مثل ما قال تابل
  2. اخوي فوكس المنتدى هذا منتدى تعليمي، اذا عندك سؤال او استفسار حطه هنا والشباب ما يقصرون لكن انك تطلب برمجة كاملة ماظن احد بيعطيك، لان المنتدى للتعلم لازم تتعلم!
  3. triggerServerEvent addAccount logIn
  4. اكره الاشياء الغامضة قول فكرتك ولا تخليها كذا مبهمة
  5. وش اخلي وش اقووووووول !!!!!!! مبددددددددددددددددددددددددددددددددددع بكل معنى الكلمة اطلق مبرمج شفته اهنيك على مجهودك تقبل مروري من اخ وصديق بسول
  6. Bssol

    group sys

    outputChatBox ( tostring ( result ), source ) result is a table, you can't make it string. i think the correct way is: outputChatBox ( result[1].Owner, source ) you can change Owner to another one, if you want to get another value.
  7. ممكن سؤال؟؟؟ انت خوينا ناصر الي في السيرفر؟؟؟
  8. function onPlayerWin(player) local money1 = tonumber(getElementData(player,"Money")) outputChatBox("* "..getPlayerName(player).." #FFFF00Has won the Prize #00FF00$"..thePrize,root,255,255,0,true) setElementData(player, "Money", money1+thePrize) givePlayerMoney(player,thePrize) local serial = getPlayerSerial ( player ) executeSQLUpdate ( "MoneyB", "Money = '"..tostring(getPlayerMoney ( player )).."'","serial = '" .. serial .. "'") removeCode() end try this. if there is any problem, you must put all your code here. another thing, i don't thing that using serial is a good idea, because maybe the player wana join the server from diffrent computer.
  9. function startRes ( ) local bed = createObject ( 1700, 2185.88037, 1599.43262, 68.71986 ) moveObject ( bed, 3000, 2185.88037, 1699.43262, 68.71986 ) end addEventHandler ( "onResourceStart", getResourceRootElement(), startRes ) وعلى فكرة، الـ 3000 مو السرعة هذا الوقت الي راح ياخذه الجسم على ما يوصل للمحل الجديد.
  10. عشان تحرك الاجسام، لازم تستخدم كود moveObject ادخل هنا وشوف طريقة الاستخدام https://wiki.multitheftauto.com/wiki/MoveObject
  11. ما فهمت، وش تبي تسوي بالضبط؟؟
  12. Bssol

    كود

    اعتقد المشكلة في حجم الدائرة، لاني اذكر قبل كنت مسوي سكربت وكانت الدائرة صغيرة شوي فكان صعب يشتغل الكود فيها. جرب هذا ( مافي فرق عن الاكواد الي عطوك اياها الشباب، الاختلاف في حجم الدائرة بس ) local theMarker = createMarker(1000,1000,30,"cylinder", 7.0, 255,255,0,170) addEventHandler("onMarkerHit", theMarker, function(hitElement) if (getElementType(hitElement) == "vehicle") then speedx, speedy, speedz = getElementVelocity(hitElement) actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kmh = math.ceil(actualspeed * 180) if (kmh >= 180 ) then local driver = getVehicleOccupant(hitElement) givePlayerMoney(driver,1000) outputChatBox("You Won $1000",driver,255,255,0) end end end)
  13. وش تبي تسوي بالضبط؟؟؟
  14. Imperio, if I replace my mtaserver by your text the problem will solved?
  15. ????????????? Is there anyone can help me?
  16. Hi guys, i have a problem, and i don't know how to solve it. my problem is when i connect to some server, which have "Map Downloading" of about 800km, the downloading stops and i can't join the server. some people say it will solve in 1.3, but that's mean it will take a long time. is there someone can help me?
  17. https://community.multitheftauto.com/index.php?p= ... ls&id=3315 stolen
  18. I don't know what can i say?!!! look at this idiot again https://community.multitheftauto.com/index.php?p= ... ls&id=3315 do something with him
  19. OMG, MOJRM-511 has stolen my script !!! look at his script here https://community.multitheftauto.com/index.php?p= ... ls&id=3312 it's the same of my script "first_aid" please delete it.
  20. https://community.multitheftauto.com/index.php?p= ... ts&id=1999 Please delete all MOJRM-511comments he's a stupid boy if you can please ban him
  21. Bssol

    An idea :)

    hi all I have an idea but i don't think it will happen lol I have a lot of physical trials, the gravity was equal to zero. I noticed when there are two different cars moving at same speed, one of them slowing faster than the other. I think the reason is the air resistance. if this is true, we want a function in version 1.2 to disable the air resistance. This is my idea and sorry for bad english
  22. Bssol

    Tonumber.

    If you want to make it to the nearest integer number, you can use solidsnake's code. But if you want to make it with a few decimal numbers, you need to put this function to your script. function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end so, If you have a number of such 3.26897 math.round(3.26897, 2) --- 3.26 math.round(3.26897, 3) --- 3.268
×
×
  • Create New...