-
Posts
265 -
Joined
-
Last visited
Everything posted by Bssol
-
!!!!!!!!!!!!!! All your code is wrong!
-
اكره الاشياء الغامضة قول فكرتك ولا تخليها كذا مبهمة
-
وش اخلي وش اقووووووول !!!!!!! مبددددددددددددددددددددددددددددددددددع بكل معنى الكلمة اطلق مبرمج شفته اهنيك على مجهودك تقبل مروري من اخ وصديق بسول
-
ممكن سؤال؟؟؟ انت خوينا ناصر الي في السيرفر؟؟؟
-
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.
-
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 مو السرعة هذا الوقت الي راح ياخذه الجسم على ما يوصل للمحل الجديد.
-
عشان تحرك الاجسام، لازم تستخدم كود moveObject ادخل هنا وشوف طريقة الاستخدام https://wiki.multitheftauto.com/wiki/MoveObject
-
ما فهمت، وش تبي تسوي بالضبط؟؟
-
اعتقد المشكلة في حجم الدائرة، لاني اذكر قبل كنت مسوي سكربت وكانت الدائرة صغيرة شوي فكان صعب يشتغل الكود فيها. جرب هذا ( مافي فرق عن الاكواد الي عطوك اياها الشباب، الاختلاف في حجم الدائرة بس ) 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)
-
Imperio, if I replace my mtaserver by your text the problem will solved?
-
????????????? Is there anyone can help me?
-
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?
-
https://community.multitheftauto.com/index.php?p= ... ls&id=3315 stolen
-
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
-
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.
-
TAPL is right, them too
-
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
-
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
-
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
