
Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
seconds = 60 function createText ( ) seconds = 60 setTimer(function () seconds = seconds - 1 end, 1000, seconds) local sWidth,sHeight = guiGetScreenSize() local sw,sh = 1280,960 function createText() dxDrawText("Saira em:", 500/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("."..seconds.." Segundos", 800/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )
-
Problem solved, he din't had latest version and the music one he reported it to me IG, he din't knew about switchers. Salute to Joa for reporting bugs!
-
if tonumber(bdrift or 0) >= 3500000 then -------- line 127 rank = "Server Drift King" setElementData(player, "driftrank", rank) dxDrawText("\n\n\nRank: "..getElementData(localPlayer, "driftrank") or "DRIFT\n\nGood Drifter for Beginner!", 20,155,screenWidth,screenHeight, Red, 1.2, "arial","left","top", false,true,false) ---- line 156
-
if tonumber(bdrift or 0) >= 3500000 then -------- line 127 rank = "Server Drift King" setElementData(player, "driftrank", rank) dxDrawText("\n\n\nRank: "..getElementData(player, "driftrank") or "DRIFT\n\nGood Drifter for Beginner!", 20,155,screenWidth,screenHeight, Red, 1.2, "arial","left","top", false,true,false) ---- line 156
-
Useless, what if player connects randomly? + I don't think if you add more GTA would work!
-
age farak nahi karta. mein scripting bahot logo ko help karta hu, ye prove karta hein im!
-
No problem!
-
playerData = { {1,20}, {2,40}, {3,60}, {4,80}, {5,100} } function testFunction(thePlayer,commandName,id) if tonumber(tostring(id)) then local attempts = 0 for index, pdata in ipairs(playerData) do if pdata[1] == id then if attempts >= #playerData then return outputChatBox("The ID doesn't exist!", thePlayer) break end givePlayerMoney(thePlayer, pdata[2]) return true break else attempts = attempts+1 end end else return outputChatBox("Invalid ID provided!", thePlayer) end end addCommandHandler("mooney",testFunction)
-
likin mein ne osko General Fights bana dia !
-
lol, it is already compiled A compiled file cannot be re-compiled, you must get the source code!
-
But still, you can replace a object. engineLoadDFF engineReplaceModel Now see the example there!
-
Please add me at skype @ anubhav.agarwal87 so we can see the problem further!
-
No, MTA doesn't support CLEO.
-
Thanks, Please post any bugs or suggestions!
-
@Refresh admin panel -> It works fine for us, it won't show yourself in the phone list!
-
Shutup, read the post carefully, he wants to be sure if he's right! The scripts are working but size and performence is different!
-
seconds = 60 function createText ( ) setTimer(function () seconds = seconds - 1 end, 1000, seconds) local sWidth,sHeight = guiGetScreenSize() local sw,sh = 1280,960 function createText() dxDrawText("Saira em:", 500/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("."..seconds.." Segundos", 800/sw*sWidth, 844/sh*sHeight, 1215/sw*sWidth, 905/sh*sHeight, tocolor(195, 195, 195, 255), 2.30, "pricedown", "left", "top", false, false, true, false, false) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", localPlayer, HandleTheRendering )
-
I don't think size affects this. Size only affects the download, how the script is written affects the performence!
-
Arguement one should be A PLAYER!
-
Not possible.. use text functions, but I don't think I can help you in because I don't know how to use them!
-
Worked? Where ? Not possible, setTimer with 1? This is not seconds foolishness! addEvent("horariodesaida",true) addEventHandler("horariodesaida",root, function() seconds = 70 setTimer(function () seconds = seconds - 1 if seconds == 0 then removeEventHandler("onClientRender",root, drawing) end end end ,1000 ,seconds) addEventHandler("onClientRender",root, drawing) end ) function drawing() dxDrawText(seconds.." seconds left!", 198, 158 ,1003, 90, 3,1) end
-
dxDrawText with a variable which contains ..seconds.." seconds left!"
-
No helps?
-
Nothing gets saved! X,Y,Z spawning at one position everytime~!