-
Posts
1,093 -
Joined
-
Last visited
-
Days Won
15
Everything posted by Woovie
-
Eh, off's is working if you bothered to take half a second and look into the problem. I use his on my server actually right now in 1.0.3. It wasn't even that difficult of a fix. Anyways, I'll send him the updated version and make a topic for it I guess. At least I know you didn't copy his code though. So much repetition.
-
Well the title explains it all. When trying to run MTA 1.0.3 on CentOS 5.3 Final I get 'Segmentation Fault' as the error. Edit: Well before I did this, 1.0.2 WAS working. I downgraded all the files back to the 1.0.2 stuff and I get the error again. I am clearly doing something wrong.
-
Had issues on the [sKC] DD server with their PM windows. Editor works fine though and all the built in stuff.
-
Good work. <3
-
I think this should be a main feature of MTA. It would be great and full of win.
-
Wow awesome. This map looks wicked. Hope you find a copy.
-
Simple, but I like it. I might just grab your trees and put them where I want them. Thanks though!
-
This topic is sexy. So is Talidan.
-
Server > Client as far as most of my scripts. Any time something is client is because it has to be.
-
I had this issue too pre 1xxx builds in the map editor. It was when I was building with other people. It usually chunks you to their location, grove, or some other persons.
-
1) Yes. When you start typing. Say I wanted getElementPosition. If you type getEleme and the dropdown pops up. use arrow keys to go up/down and when you scroll over it, you can see the parameters. 2) I agree to this DO WANT!
-
I personally keep my actual server out of my MTA directory. I do have one in there, but it is for script testing. What I do is prepare the script in the main directory then move it to the server when I am ready. Much easier.
-
I will get Fantom01 to test our server today Results will be posted!
-
I've used Eclipse but not enough to build an application.
-
c00l bump bro. I use this now: https://forum.multitheftauto.com/viewtop ... 91&t=24834
-
HOLD THE FUCKING PHONE. JUST BECAUSE I RENAMED A GOD DAMN RESOURCE MEANS SHIT. Suck a fucking dick. I didn't steal ANYTHING. I will show my damn cheat code right here. If anyone stole THIS: function cheatsEnable ( command, whichCheat ) if whichCheat == "aircars" then if isWorldSpecialPropertyEnabled ( "aircars", true ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox ("off") else setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox ("on") end elseif whichCheat == "hovercars" then if isWorldSpecialPropertyEnabled ( "hovercars", true ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox ("off") else setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox ("on") end elseif whichCheat == "extrabunny" then if isWorldSpecialPropertyEnabled ( "extrabunny", true ) then setWorldSpecialPropertyEnabled ( "extrabunny", false ) outputChatBox ("off") else setWorldSpecialPropertyEnabled ( "extrabunny", true ) outputChatBox ("on") end elseif whichCheat == "extrajump" then if isWorldSpecialPropertyEnabled ( "extrajump" ) then setWorldSpecialPropertyEnabled ( "extrajump", false ) outputChatBox ("off") else setWorldSpecialPropertyEnabled ( "extrajump", true ) outputChatBox ("on") end else outputChatBox ("epic lose") end end addCommandHandler ( "enablecheat", cheatsEnable ) I am sorry, but you shouldn't even be in the MTA community for scripting. That is a shitty code. Don't go running your fucking mouth if you don't even know what the fuck you're talking about. Just because I renamed a resource doesn't mean I am not crediting the author. It is my server, I can choose how I want the script ran and even IF I customized the script, as long as it is private it shouldn't be an issue. It isn't like I released some new GUI editor called wGUIEDIT. Any other issues like this, clear it up with me. Don't go around talking shit about legitimate scripters. Have a nice day
-
It doesn't work like that.... Just straight attach it to the car no rotation... If it is not attached at the right rotation, try values of 90 on the Z.
-
A script I've had for a while written by me and OffRoader23. Decided to release it. Here you go: ramps.lua ramp = {} rampid = {} function spawnRamp (player) if (isPedInVehicle( player ) == true) then local vehicle = getPedOccupiedVehicle ( player ) local speed = getPlayerSpeed ( player, 2 ) speed = speed / 12 local px, py, pz = getElementPosition ( vehicle ) local rx, ry, rz = getVehicleRotation ( vehicle ) local pingdis = getPlayerPing ( player ) / 20 if rx > 180 then rx = rx - 360 end local x = (speed + 15 + pingdis)*math.cos((rz+90)*math.pi/180) local y = (speed + 15 + pingdis)*math.sin((rz+90)*math.pi/180) local a2 = (speed + 15 + pingdis) local b2 = a2 / math.cos(rx*math.pi/180) local c2 = math.sqrt(b2*b2 - a2*a2) if rx < 0 then c2 = -c2 end local nx = px + x local ny = py + y local carseat = getPedOccupiedVehicleSeat ( player ) if carseat ~= 0 then --if player is not driving outputConsole ( "No ramp spawning as passenger.", player ) else --if player is driver if rampid[player] == 0 then outputConsole ( "Ramp disabled. Type /setramp 1-7 to restore.", player ) elseif rampid[player] == nil or rampid[player] == 1 then ramp = createObject ( 1632, nx, ny, pz + c2, rx, ry, rz ) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 2 then ramp = createObject ( 1655, nx, ny, pz + c2, 0, 0, rz ) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 3 then ramp = createObject ( 13641, nx, ny, pz + c2, 0, 0, rz + 90) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 4 then ramp = createObject ( 1660, nx, ny, pz + c2 - 1.5, 0, 0, rz ) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 5 then ramp = createObject ( 1631, nx, ny, pz + c2, 0, 0, rz ) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 6 then ramp = createObject ( 4870, nx, ny, pz - 1.5, 0, 0, rz - 90 ) setTimer ( deleteRamp, 10000, 1, ramp ) elseif rampid[player] == 7 then ramp = createObject ( 4870, nx, ny, pz + c2 - 1.5, 0, 15, rz - 90 ) setTimer ( deleteRamp, 10000, 1, ramp ) end end end end addCommandHandler ( "ram", spawnRamp) function setRamp (player, commandname, numb) local rampnum = tonumber(numb) if rampnum >= 1 and rampnum <= 7 then outputChatBox ( "Ramp set as " ..numb.. ".", player ) rampid[player] = rampnum else outputChatBox ( "Ramp disabled. Type /setramp 1-7 to restore.", player ) rampid[player] = 0 end end addCommandHandler ( "setramp", setRamp) function getPlayerSpeed( source, mode ) if (isPedInVehicle( source ) == true) then vehicle = getPedOccupiedVehicle( source ) if (mode == "MPH" or mode == 1) then return math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(vehicle)) * 100 * 1.14) end if (mode == "KMH" or mode == 2) then return math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(vehicle)) * 100 * 1.61 * 1.14) end else return 0 end end function deleteRamp ( ramp, player ) destroyElement ( ramp ) end function playerJoin () bindKey ( source, "num_0", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) bindKey ( source, "lalt", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) bindKey ( source, "mouse4", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) rampid[source] = 1 end function playerLeave () if rampid[source] ~= nil then rampid[source] = nil end end function thisResourceStart () local players = getElementsByType ( "player" ) for k,v in ipairs(players) do bindKey ( v, "num_0", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) bindKey ( v, "lalt", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) bindKey ( v, "mouse4", "down", spawnRamp, "Spawn Ramp N Shit Yo" ) rampid[v] = 1 end end local thisResourceRoot = getResourceRootElement(getThisResource()) addEventHandler ( "onResourceStart", thisResourceRoot, thisResourceStart ) addEventHandler ( "onPlayerJoin", getRootElement(), playerJoin ) addEventHandler ( "onPlayerQuit", getRootElement(), playerLeave ) meta.xml <meta> <info author="Woovie" version="1" name="Ramp Spawning Script" description="Press left ALT to spawn a ramp" type="script"/> <script src="ramps.lua" /> </meta>
-
THIS WILL NOT WORK ON 2.3 OR EARLIER. DO NOT ASK ME WHY IT DOESN'T WORK ON YOUR 2.3 SERVER. I WILL IGNORE YOU. So on my server I use my own blips and chat system based on team colors so the freeroam script was sort of interfering with that. I had a few friends contacting me about a modified menu that removed these as well so I figured I'd make a download. I do have permission from arc_ to release this. In case this script is updated, here is what I modified to fr_server.lua: Line 134, 135, 137. Added -- to comment out the code. --local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) --setPlayerNametagColor(player, r, g, b) --g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) Line 375 added --[[ and line 385 added ]] to quote out the whole section --[[ addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. ': #FFFFFF' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) end end ) ]] Here is a full download of the freeroam resource ready to use if you are lazy. Only files modified were fr_server.lua and meta.xml. Make sure you look at meta.xml and have it configured to your needs. http://www.mediafire.com/download.php?mmjozjmwzow
-
Switched to GTANet to use this script after FINALLY acquiring it. The players, from what I see, are never even given an ID in the version I am running. So nearly no commands work. Kind of a bad script IMO. If it worked correctly, I'd recommend it.
-
Does anyone have this ? I really want it and I can't find ANYONE with it.
-
Oh okay. Thanks. Didn't know that.
-
How do I use these functions ? They don't even have a way to connect to the server. And I tried to get MTA-MySQL but the download is down.
-
Well actually our script has /attach [x] [y] [z] [rx] [ry] [rz] [name] I am not sure if OffRoader is up for releasing the script.
-
Stop votemanager.