Jump to content

iChang

Members
  • Posts

    14
  • Joined

  • Last visited

About iChang

  • Birthday 16/03/1996

Details

  • Gang
    UPG
  • Location
    QuantumChromoDynamics

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

iChang's Achievements

Square

Square (6/54)

0

Reputation

  1. So you made a terrain eh? I thought I made it ( )
  2. function createTrain(source) local myTrain = createVehicle(537,1995,-1949,13) -- Create the train setTrainDirection(myTrain, true) -- Make the train drive clockwise setTrainSpeed(myTrain, 1) -- Speed up end addCommandHandler("mytrain", createTrain) Source: https://wiki.multitheftauto.com/wiki/SetTrainDirection
  3. Dear Lloyd Logan, If I was you, I'd stop developing the RP server since there are A LOT of fail RP servers. They are everywhere, it's like an invasion of RP servers. However, that's just my opinion. Sincerely Yours, L. Jenkins
  4. That was said 3 months ago. When are we going to see SGC online? I've heard 'before summer' which means that they will open within 4 weeks. Am I right? if not, please correct me.
  5. Yo yo, Here's my tip window script. It's basically a window that moves up from the bottom right of your screen every 60 seconds containing a random tip specified by you. SERVER: msgs = { "Message 1", "Message 2", "Message 3", "Message 4" } function getRandomTip() local text = msgs[math.random(1, #msgs)] triggerClientEvent("startHint", root, text) end setTimer(getRandomTip, 60000, 0) CLIENT: sX, sY = guiGetScreenSize() height = 1 --Starting height maxHeight = 1.2 alpha = 0.65 noticeSound = false noticeSoundID = 45 --VARIABLES YOU SHOULDN'T CHANGE moveWindowForward = false secondHeight = 0 -------------------------------- tipWnd = guiCreateWindow(sX/1.22, sY/height,227,181,"Information",false) guiWindowSetMovable(tipWnd,false) guiWindowSetSizable(tipWnd,false) guiSetAlpha(tipWnd, alpha) tipLabel = guiCreateLabel(9,26,216,144,"",false,tipWnd) guiSetVisible(tipWnd, false) addEvent("startHint", true) addEventHandler("startHint", root, function(text) guiSetText(tipLabel, text) moveWindowForward = true tipWindowVisible(true) if noticeSound then playSoundFrontEnd(noticeSoundID) end end) function tipWindowVisible(state) guiSetVisible(tipWnd, state) end addEventHandler("onClientPreRender", root, function() if isTimer(backTimer) then return end if moveWindowForward then if height < maxHeight then height = height + 0.004 end if height >= maxHeight then moveWindowForward = false backTimer = setTimer( function() function moveItBack() if moveWindowForward == false then if height >= 1 then height = height - 0.004 end if height <= 1 then tipWindowVisible(false) removeEventHandler("onClientPreRender", root, moveItBack) end end end addEventHandler("onClientPreRender", root, moveItBack) end, 9000, 1) end end guiSetPosition(tipWnd, sX/1.22, sY/height, false) end) In the end... It should look like this:
  6. Haters gonna Hate, Potatoes gonna Potate
  7. it's not a static movement, the zombies will follow the player. so doing this is impossible. Ohh, who said that I was talking about the default zombies?
  8. Path nodes might be a solution.
  9. iChang

    zombie

    When the download is finished, move it into your resources folder. After that. start it by typing /start zombies, make sure you're an Admin though. If the 2 tips stated above didn't work... You suck. Be patient, another MTA Member will help you as soon as possible.
  10. iChang

    getGroundType

    MTA's map editor has a way to get the ID of a world object. I'd suggest: Take look in the the editor_main resource.
  11. I highly recommend you to use math.ceil as much as possible. Unless u want to use math.floor
  12. This script is stolen from a race server.
  13. /debugscript 3 Since your labels are all relative, all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.
×
×
  • Create New...