Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. 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 )
  2. 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!
  3. 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
  4. 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
  5. Which are those lines!
  6. Useless, what if player connects randomly? + I don't think if you add more GTA would work!
  7. age farak nahi karta. mein scripting bahot logo ko help karta hu, ye prove karta hein im!
  8. 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)
  9. likin mein ne osko General Fights bana dia !
  10. lol, it is already compiled A compiled file cannot be re-compiled, you must get the source code!
  11. But still, you can replace a object. engineLoadDFF engineReplaceModel Now see the example there!
  12. Please add me at skype @ anubhav.agarwal87 so we can see the problem further!
  13. Thanks, Please post any bugs or suggestions!
  14. @Refresh admin panel -> It works fine for us, it won't show yourself in the phone list!
  15. Shutup, read the post carefully, he wants to be sure if he's right! The scripts are working but size and performence is different!
  16. 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 )
  17. I don't think size affects this. Size only affects the download, how the script is written affects the performence!
  18. Arguement one should be A PLAYER!
  19. Not possible.. use text functions, but I don't think I can help you in because I don't know how to use them!
  20. 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
  21. dxDrawText with a variable which contains ..seconds.." seconds left!"
  22. Nothing gets saved! X,Y,Z spawning at one position everytime~!
×
×
  • Create New...