-
Posts
1,646 -
Joined
-
Last visited
Everything posted by CapY
-
Well Windows 8 Developer preview is out ! You can download it here : http://www.buildwindows.com/ And spend some time to watch Windows 8 documentation Here :
-
Look for "File" tag here : https://wiki.multitheftauto.com/wiki/Meta.xml You can use this : <file src="yourimagename.png" /> To identify your image.
-
It's not <user.Ajacob112> It's <object name="user.Ajacob112"></object> Add it in MapEditor group.
-
Delux Host: cheap, reliable and safe game server hosting
CapY replied to DeluxHost's topic in Hosting solutions
No it's not . -
I already maked an invisible car accidentally , with modified invisible resource from community, i don't know how i did it, maybe it was an bug .
-
Okay i've fixed it , one more problem, i have instructions window , but that window appears when someone joins, i want it to appear after teleport GUI click . NOTE:This is just a part of the code. function setCameraOnPlayerJoin() -- set the player's camera to a fixed position, looking at a fixed point addEventHandler("onClientGUIClick", Button1[1],camTarget, false ) addEventHandler("onClientGUIClick", Btn2[2],camTarget, false ) addEventHandler("onClientGUIClick", Btn3[3],camTarget, false ) addEventHandler ( "onClientGUIClick", Button1[1], stopCamSwitch, false) addEventHandler ( "onClientGUIClick", Btn2[2], stopCamSwitch, false) addEventHandler ( "onClientGUIClick", Btn3[3], stopCamSwitch, false) Label1 = {} Grid = {} Grid[1] = guiCreateGridList(0.6969,0.2305,0.3031,0.1357,true) guiGridListSetSelectionMode(Grid[1],2) Label1[1] = guiCreateLabel(0.0284,0.223,0.9665,0.554,"While you're playing , to keep you interested , just press F1 and \nyou have some nice features there, but that area is still\nunfinished.\n\nHowewer.. you can expect more features on it soon! ",true,Grid[1]) guiSetFont(Label1[1],"default-bold-small") switchMatrixCams ( ) guiSetVisible(Grid[1],false) timerGrid = setTimer(gridTimer,10000,1) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),setCameraOnPlayerJoin) function stopCamSwitch ( ) killTimer ( camTimer ) cancelEvent () end function gridTimer() killTimer(timerGrid) guiSetVisible(Grid[1],true) end
-
Well ..you already did it in the script .
-
I don't have an idea will that work ( not tested ) . local playername = getPlayerName(alivePlayers[1]) local sound = playSound("sounds/lastmen.mp3") local alivePlayers = getAlivePlayers() function DestructionMoney2() if #alivePlayers == 1 then sound = playSound("sounds/lastmen.mp3") end end
-
One more problem , when a click on a play button i play normally , but after 10 seconds setCameraMatrix continue to work.. After gui click matrixCamera needs to be stopped, anybody can help ? NOTE:This is just a part of the code: local matrixCams = { --{positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov} {1614.837, -1301.275, 138.188, 200, 400, 102,0,180}, --LS {2052.229, 1559.058, 20.671, 125, 200, 101, 0, 150}, --LV {-1856.736, 807.699, 115.546, 300, 250,99.98, 70, 90}, --SF {1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316,0,180}--Vinewood Sign } local index = 1 function switchMatrixCams() local positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov = unpack(matrixCams[index]) if getCameraMatrix() then setCameraMatrix(positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov) setTimer(switchMatrixCams,10000,1) index = index + 1 if index > #matrixCams then index = 1 end end end function setCameraOnPlayerJoin() -- set the player's camera to a fixed position, looking at a fixed point addEventHandler("onClientGUIClick", Button1[1],camTarget, false ) addEventHandler("onClientGUIClick", Btn2[2],camTarget, false ) addEventHandler("onClientGUIClick", Btn3[3],camTarget, false ) switchMatrixCams ( ) killTimer(switchMatrixCams) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),setCameraOnPlayerJoin)
-
Sometimes camera switch for 10 secs , sometimes for 1 minute and cameras doesn't go one after the other. local matrixCams = { --{positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov} {1614.837, -1301.275, 138.188, 200, 400, 102,0,180}, --LS {2052.229, 1559.058, 20.671, 125, 200, 101, 0, 150}, --LV {-1856.736, 807.699, 115.546, 300, 250,99.98, 70, 90}, --SF {1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316,0,180},--Vinewood Sign } function switchMatrixCams() local rand = math.random(1, #matrixCams) local positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov = unpack(matrixCams[rand]) if getCameraMatrix() then setCameraMatrix(positionX,positionY,positionZ,lookAtX,lookAtY,lookAtZ, roll, fov) setTimer(switchMatrixCams,10000,0) end end function setCameraOnPlayerJoin() -- set the player's camera to a fixed position, looking at a fixed point addEventHandler("onClientGUIClick", Button1[1],camTarget, false ) addEventHandler("onClientGUIClick", Btn2[2],camTarget, false ) addEventHandler("onClientGUIClick", Btn3[3],camTarget, false ) killTimer(setTimer,switchMatrixCams) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),setCameraOnPlayerJoin) Anyone can help.
-
Hachouma was wondering is that possible on MTA.
-
So what you want is like more realistic car damage or ?
-
Sincerely i dont know what i did on switchMatrixCams , because i dont know which function i must use . function switchMatrixCams(old,new) local matrixCams = { {1614.837, -1301.275, 38.188, 200, 400}, --LS {2052.229, 1559.058, 10.671, 125, 200}, --LV {-1856.736, 807.699, 112.546, 300, 250}, --SF } end function setCameraOnPlayerJoin() -- set the player's camera to a fixed position, looking at a fixed point if getCameraMatrix() then setTimer(switchMatrixCams,50,5) addEventHandler("onClientGUIClick", Button1[1],camTarget, false ) addEventHandler("onClientGUIClick", Btn2[2],camTarget, false ) addEventHandler("onClientGUIClick", Btn3[3],camTarget, false ) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),setCameraOnPlayerJoin) Anyone can help ?
-
Yes i know i can't call a table because i'm trying to fix it , but i don't know how .