Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Topic should be deleted! This board is for advertising your company IF IT PROVIDES MTA-SERVER otherwise go to Looking For Staff board or somewhere!
  2. And I realy don't suggest to use getElementData with onClientRender. It can cause massive lag!
  3. Anubhav

    .

    Its already solved, he posted 2 topics.
  4. sWidth, sHeight = nil, nil X, Y, Width, Height = nil, nil, nil, nil count = nil function pro() if count ~= 4 then dxDrawText( tostring(count), X, Y, Width, Height, tocolor(255, 255, 255, 255), 1, "bankgothic" ) else dxDrawText( "GO!", X, Y, Width, Height, tocolor(255, 255, 255, 255), 1, "bankgothic" ) end end function somethingfor() sWidth, sHeight = guiGetScreenSize() Width,Height = 50, 50 X = (sWidth/2) - (Width/2) Y = (sHeight/2) - (Height/2) addEventHandler("onClientRender", root, pro ) if getTickCount() - getTickStart > 0 and count == 0 then sound3 = playSound( "3.mp3", false ) setSoundMaxDistance( sound3, 5000 ) count = 3 elseif getTickCount() - getTickStart > 1000 and count == 3 then if sound3 and isElement(sound3) then stopSound( sound3 ) end sound2 = playSound( "2.mp3", false ) setSoundMaxDistance( sound2, 5000 ) count = 2 elseif getTickCount() - getTickStart > 2000 and count == 2 then if sound2 and isElement(sound2) then stopSound( sound2 ) end sound1 = playSound( "1.mp3", false ) setSoundMaxDistance( sound1, 5000 ) count = 1 elseif getTickCount() - getTickStart > 3000 and count == 1 then if sound1 and isElement(sound1) then stopSound( sound1 ) end sound0 = playSound( "0.mp3", false ) setSoundMaxDistance( sound0, 5000 ) count = 4 removeEventHandler("onClientRender", root, pro ) end end function GridCountdown() count = 0 getTickStart = getTickCount () addEventHandler( "onClientRender", getRootElement(), somethingfor) end addEvent ( "triggerclientforGridCountdown", true ) addEventHandler ( "triggerclientforGridCountdown", getRootElement(), GridCountdown )
  5. Not valid. I have proofs, he only told me of making commands, I told of making a GUI.etc. He din't did anything instead of traiting me! + It has your half idea, and its never yours! You only gave me idea, that doesn't mean you must be author. The credits are there. If a admin needs proof add me on skype, anubhav.agarwal80, I'll send you all msges of him.
  6. sWidth, sHeight = nil, nil X, Y, Width, Height = nil, nil, nil, nil count = nil function pro() if count ~= 4 then dxDrawText( tostring(count), X, Y, Width, Height ) else dxDrawText( "GO!", X, Y, Width, Height ) end end function somethingfor() sWidth, sHeight = guiGetScreenSize() Width,Height = 10, 10 X = (sWidth/2) - (Width/2) Y = (sHeight/2) - (Height/2) addEventHandler("onClientRender", root, pro ) if getTickCount() - getTickStart > 0 and count == 0 then sound3 = playSound( "3.mp3", false ) setSoundMaxDistance( sound3, 5000 ) count = 1 elseif getTickCount() - getTickStart > 1000 and count == 1 then if sound3 and isElement(sound3) then stopSound( sound3 ) end sound2 = playSound( "2.mp3", false ) setSoundMaxDistance( sound2, 5000 ) count = 2 elseif getTickCount() - getTickStart > 2000 and count == 2 then if sound2 and isElement(sound2) then stopSound( sound2 ) end sound1 = playSound( "1.mp3", false ) setSoundMaxDistance( sound1, 5000 ) count = 3 elseif getTickCount() - getTickStart > 3000 and count == 3 then if sound1 and isElement(sound1) then stopSound( sound1 ) end sound0 = playSound( "0.mp3", false ) setSoundMaxDistance( sound0, 5000 ) count = 4 elseif getTickCount() - getTickStart > 4000 and count == 4 then count = 5 if sound0 and isElement(sound0) then stopSound( sound0 ) end removeEventHandler( "onClientRender", getRootElement(), somethingfor) setTimer(removeEventHandler, 1000, 1, "onClientRender", root, pro ) end end function GridCountdown() count = 0 getTickStart = getTickCount () addEventHandler( "onClientRender", getRootElement(), somethingfor) end addEvent ( "triggerclientforGridCountdown", true ) addEventHandler ( "triggerclientforGridCountdown", getRootElement(), GridCountdown )
  7. Excuse me, Mr.ShaqiQ. Bilal = blocked on skype + ignore list ( foe )! Evil# = can talk on skype but rare ._>
  8. Anubhav

    count dxdraw

    Why are you posting so many topics?
  9. sWidth, sHeight = nil, nil X, Y, Width, Height = nil, nil, nil, nil count = nil function pro() if count ~= 5 then dxDrawText( tostring(count), X, Y, Width, Height ) else dxDrawText( "GO!", X, Y, Width, Height ) end end function somethingfor() sWidth, sHeight = guiGetScreenSize() Width,Height = 10, 10 X = (sWidth/2) - (Width/2) Y = (sHeight/2) - (Height/2) addEventHandler("onClientRender", root, pro ) if getTickCount() - getTickStart > 0 and count == 0 then sound3 = playSound( "3.mp3", false ) setSoundMaxDistance( sound3, 5000 ) count = 1 elseif getTickCount() - getTickStart > 1000 and count == 1 then if sound3 and isElement(sound3) then stopSound( sound3 ) end sound2 = playSound( "2.mp3", false ) setSoundMaxDistance( sound2, 5000 ) count = 2 elseif getTickCount() - getTickStart > 2000 and count == 2 then if sound2 and isElement(sound2) then stopSound( sound2 ) end sound1 = playSound( "1.mp3", false ) setSoundMaxDistance( sound1, 5000 ) count = 3 elseif getTickCount() - getTickStart > 3000 and count == 3 then if sound1 and isElement(sound1) then stopSound( sound1 ) end sound0 = playSound( "0.mp3", false ) setSoundMaxDistance( sound0, 5000 ) count = 4 elseif getTickCount() - getTickStart > 4000 and count == 4 then count = 5 if sound0 and isElement(sound0) then stopSound( sound0 ) end removeEventHandler( "onClientRender", getRootElement(), somethingfor) setTimer(removeEventHandler, 1000, 1, "onClientRender", root, pro ) end end function GridCountdown() count = 0 getTickStart = getTickCount () addEventHandler( "onClientRender", getRootElement(), somethingfor) end addEvent ( "triggerclientforGridCountdown", true ) addEventHandler ( "triggerclientforGridCountdown", getRootElement(), GridCountdown )
  10. shutup, I CAN KEEP CAPS ON, NO RULES LIKE THAT. I CAN SHOUT AS MUCH AS I WANT!
  11. Thik ho gaya. ccw answered. Mein re pas trojan aya, jisne almost mta ko wipe kar di ya. Mein ne MTADiag use kiya aur usna pastebin diya aur ab ccw ne answer kar diya! I'm a computer engineer!
  12. Not working? Are you seeing dreams? I tested it, IT WORKS 100%!
  13. sWidth, sHeight = nil, nil X, Y, Width, Height = nil, nil, nil, nil count = nil function pro() if count ~= 5 then dxDrawText( tostring(count), x, y, Width, Height ) else dxDrawText( "GO!", x, y, Width, Height ) end end function somethingfor() sWidth, sHeight = guiGetScreenSize() Width,Height = 10, 10 X = (sWidth/2) - (Width/2) Y = (sHeight/2) - (Height/2) addEventHandler("onClientRender", root, pro ) if getTickCount() - getTickStart > 0 and count == 0 then sound3 = playSound( "3.mp3", false ) setSoundMaxDistance( sound3, 5000 ) count = 1 elseif getTickCount() - getTickStart > 1000 and count == 1 then if sound3 and isElement(sound3) then stopSound( sound3 ) end sound2 = playSound( "2.mp3", false ) setSoundMaxDistance( sound2, 5000 ) count = 2 elseif getTickCount() - getTickStart > 2000 and count == 2 then if sound2 and isElement(sound2) then stopSound( sound2 ) end sound1 = playSound( "1.mp3", false ) setSoundMaxDistance( sound1, 5000 ) count = 3 elseif getTickCount() - getTickStart > 3000 and count == 3 then if sound1 and isElement(sound1) then stopSound( sound1 ) end sound0 = playSound( "0.mp3", false ) setSoundMaxDistance( sound0, 5000 ) count = 4 elseif getTickCount() - getTickStart > 4000 and count == 4 then count = 5 if sound0 and isElement(sound0) then stopSound( sound0 ) end removeEventHandler( "onClientRender", getRootElement(), somethingfor) setTimer(removeEventHandler, 1000, 1, "onClientRender", root, pro ) end end function GridCountdown() count = 0 getTickStart = getTickCount () addEventHandler( "onClientRender", getRootElement(), somethingfor) end addEvent ( "triggerclientforGridCountdown", true ) addEventHandler ( "triggerclientforGridCountdown", getRootElement(), GridCountdown )
  14. I belive, moveObject's rotation's are bugged. I was fixing it, it goes on other rotation. o_O is it! Then without rotation arguments worked fine! --gate-- gate1 = createObject(980, -1980.5789794922, 283.62588500977, 37, 0,0,90) gate2 = createObject(980, -1980.5789794922, 293.22588500977, 37, 0,0,90) -- Markers -- hitMarker1 = createMarker(-1985.8018798828, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) hitMarker2 = createMarker(-1976.7435302734, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) function moveGateUpA( hitElement, matchingDimension ) local x1, y1 = getElementPosition( gate1 ) local x, y = getElementPosition( gate2 ) moveObject( gate1, 5000, x1, y1, 40) moveObject( gate2, 5000, x, y, 40) outputChatBox("You moved the gate!") end addEventHandler( "onMarkerHit", hitMarker1, moveGateUpA ) function timerReady(s) local x, y = getElementPosition( gate1 ) local x2, y2 = getElementPosition ( gate2 ) outputChatBox("You moved the gate!") moveObject(gate1, 5000, x, y, 37 ) moveObject(gate2, 5000, x2, y2, 37 ) end function moveGateDownA( leaveElement, matchingDimension ) setTimer ( timerReady, 10000, 1, source ) end addEventHandler( "onMarkerLeave", hitMarker2, moveGateDownA )
  15. Anubhav

    Help ._.

    Thanks alot! Kudos to you!
  16. Wo tera nahi hein. .. AL3GRAB KA EDIT KAR KE TERA NAHI BANTA. TUNE SIRF USKA GUI EDIT KIYA. MEIN NEH ASLI CREDITS DIYA HEIN AUR MEIN NA USKU EDIT BHI KIYA THA. MEIN BOD MEIN ABH NAHI HU KYU KI MERA MTA MESSED HO GAYA!
  17. Anubhav

    Help ._.

    http://pastebin.mtasa.com/466104658 Please help, I'm dieing!
  18. getElementDimension on onPlayerChat will work asap.
×
×
  • Create New...