
ALE34
Members-
Posts
15 -
Joined
-
Last visited
ALE34's Achievements

Square (6/54)
0
Reputation
-
I saw this map in gta inside and was wondering that is it possible to get that map to MTA This would be perfect drift map
-
I was starting mapping again and tried to download rcg plugin for map editor. Problem is that i didnt find anywhere a working download link. Even mtawiki's download link wasnt working so maybe someone can give me a working download link Edit: Found working download link in Rollercoaster thread
-
Thanks! you missed only one thing again attachElements(radio, menopeli34) -- this wont work attachElements(radio, object) -- this will work
-
triggering because im trying to attach the music to moving object: menopeli34' client: function musa ( menopeli34) if menopeli34 then local x,y,z = getElementPosition ( menopeli34 ) radio = playSound3D( "https://dl.dropboxusercontent.com/s/9z9n7oez2d55xif/amispoppia_-_waves-hZ35j1c6BJw_fmt34.mp3", x, y, z, true) setSoundMaxDistance( radio, 200 ) outputChatBox ( "music is on!", source, 255, 0, 0, true ) attachElements ( radio, menopeli34 ) else outputChatBox ( "cant find the menopeli", getRootElement(), 255, 0, 0, true ) end end addEvent("playSoundOnStart", true) addEventHandler("playSoundOnStart",getRootElement(), musa) server: function startscript menopeli34 = createObject(5837, 0, 0, 100, 0, 0, 0) end addEventHandler ( "onResourceStart", getRootElement(), startscript) function menomusa (menopeli34) triggerClientEvent ( "playSoundOnStart", getRootElement, menopeli34) end addCommandHandler ( "turnupthemusic", menomusa ) function menopeli(player, cmd, posX, posY, posZ) local posX = tonumber(posX) local posY = tonumber(posY) local posZ = tonumber(posZ) if posX and posX and posZ then moveObject(menopeli34, 15000, posX, posY, posZ) end end addCommandHandler("meno", menopeli) function kutsumenopeli(player) local x, y, z = getElementPosition(player) moveObject(menopeli34, 15000, x, y, z + 1 ) end addCommandHandler("callmeno", kutsumenopeli) function menowarp(player, cmd, who) local kohde = getPlayerName(who) if (kohde) then local x, y, z = getElementPosition(kohde) moveObject(menopeli34, 15000, x, y, z + 25) end end addCommandHandler("targetmeno", menowarp) function pikameno(player, cmd, who) local kohde = getPlayerFromName(who) if (kohde) then local x, y, z = getElementPosition(kohde) moveObject(menopeli34, 1000, x, y, z + 25) end end addCommandHandler("fasttarget", pikameno) function nousumeno(player) local x, y, z = getElementPosition(player) moveObject(menopeli34, 20000, x, y, z + 1000) end addCommandHandler("goup", nousumeno)
-
now when the other part of the script works im trying to attach playsound3d to the object: no errors it just doesnt work server: function startscript menopeli34 = createObject(5837, 0, 0, 100, 0, 0, 0) end addEventHandler ( "onResourceStart", getRootElement(), startscript) function menomusa (menopeli34) triggerClientEvent ( "playSoundOnStart", getRootElement, menopeli34) end addCommandHandler ( "turnupthemusic", menomusa ) function afterSound(radio) if menopeli34 and radio then attachElements ( radio, menopeli34 ) end end addEvent("afterSoundCreation") addEventHandler("afterSoundCreation",getRootElement(),afterSound) client: function musa ( menopeli34) if menopeli34 then local x,y,z = getElementPosition ( menopeli34 ) radio = playSound3D( "https://dl.dropboxusercontent.com/s/9z9n7oez2d55xif/amispoppia_-_waves-hZ35j1c6BJw_fmt34.mp3", x, y, z, true) setSoundMaxDistance( radio, 200 ) outputChatBox ( "music is on!", source, 255, 0, 0, true ) triggerServerEvent ( "afterSoundCreation",getRootElement, radio) else outputChatBox ( "cant find the menopeli", getRootElement(), 255, 0, 0, true ) end end addEvent("playSoundOnStart", true) addEventHandler("playSoundOnStart",getRootElement(), musa)
-
Thanks a lot! only one thing missed : local posX = tonumber(posX) local posX = tonumber(posY) local posZ = tonumber(posZ)
-
menopeli.lua:11 attempt to perfom arithmetic on local z (a nil value) i dont know what i do wrong function startScript () menopeli34 = createObject (5837, 0, 0, 100, 0, 0, 0) end function menopeli (cmd, posX, posY, posZ) moveObject ( menopeli34, 15000, posX, posY, posZ ) end function kutsumenopeli ( cmd, thePlayer ) local x, y, z = getElementPosition ( thePlayer ) moveObject ( menopeli34, 15000, x, y, z + 10 ) end function menowarp ( cmd, who ) local kohde = getPlayerFromName ( who ) if ( kohde ) then local x,y,z = getElementPosition ( kohde ) moveObject ( menopeli34, 15000, x, y, z + 50 ) end end addCommandHandler ( "kohdemeno", menowarp ) addCommandHandler ( "kutsumeno", kutsumenopeli ) addCommandHandler ( "meno", menopeli ) addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), startScript)
-
i need help for triggering the next checkpoint creation when you hit the 1st checkpoint it creates 2nd
-
i need help with my GUMBALL race this is gonna be kind of a minigame im noob at scripting so it was really hard to go this far sorry for bad enslish -- start: 2768, 2455, 14 -- 1. checkpoint : 406, 2507, 17 -- 2. checkpoint : -2330, -1614, 484 -- 3. checkpoint : -1890, -2423, 33 -- 4. checkpoint : -1170, -2640, 12 -- 5. checkpoint : -24, -2510, 37 -- 6. checkpoint : -789, 2424, 157 -- 7. checkpoint : -2257, 2296, 5 -- goal : -7478, -329, 24 local gumballTable = { [1] = "406,2507,17", [2] = "-2330,-1614,484", [3] = "-1890,-2423,33", [4] = "-1170,-2640,12", [5] = "-24,-2510,37", [6] = "-789,2424,157", [7] = "-2257,2296,5" [8] = "-7478,-329,24" } function startrace ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if vehicle then x, y, z = [1] setElementPostion ( getLocalPlayer, 2768, 2455, 14 ) local piste = createMarker ( x, y, z, "checkpoint", 10.0, 255, 0, 0, 255 if ( piste ) then x, y, z = [1] createBlip ( x, y, z, 0, 255 , 0, 0 ) end end end function miss ( src, cmd ) local auto = getPedOccupiedVehicle ( src ) if auto then outputChatBox ("Kisa Alkakoon!", src, 255, 0, 0) else outputChatBox ("Tarvitset Auton!", src, 255, 0, 0) end end addCommandHandler ( "gumball", miss ) addCommandHandler ( "gumball", startrace )
-
function teamPayday( src) local allPlayers = getElementsByType("player") for index,value in ipairs(allPlayers) do if getTeamName(getPlayerTeam(value)) == "Police" then givePlayerMoney ( value, 2000 ) end outputChatBox (" ------Police-bonus------ ", value, src, 255, 255, 255, false) outputChatBox ("|--------------------------|", value, src, 0, 100, 180, false) outputChatBox ("+2000$", value, src, 0, 255, 0, false) outputChatBox ("|--------------------------|", value, src, 0, 100, 180, false) end end function onResourceStart(thisResource) setTimer ( teamPayday, 990000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart ) Try this one
-
server, but my friend solved the problem:DDD i tried this one before but "function namered ( thePlayer, r, g, b )" function namered ( thePlayer ) setPlayerNametagColor ( thePlayer, 255, 0, 0 ) end addCommandHandler ("red", namered ) -- Fixed by sande.
-
When testing still same problem
-
Thanks! im new in scripting
-
14: Bad argument @ 'setPlayerNametagColor' "namecolormanual" works but im having problem with executeCommandHandler function nametagColorChangeManual ( thePlayer, commandName, r, g, b ) setPlayerNametagColor ( thePlayer, r, g, b ) end addCommandHandler ( "namecolormanual", nametagColorChangeManual ) function namecolorred ( thePlayer, commandName, ... ) local red = #arg local arg = { 255,0,0 } executeCommandHandler ( "namecolormanual", thePlayer, red ) end addCommandHandler ( "namecolor-red", namecolorred ) Sorry for bad english