
Spliff
-
Posts
36 -
Joined
-
Last visited
Posts posted by Spliff
-
-
Okay so, we've currently been mapping alot of stuff, yet we're kind of stuck when it comes to our melee damage;
When you're on our custom islands, you cannot do any damage to eachother (melee, shooting works), and since our server is 100% based over melee fights, that gives us quite a problem
I'd just like to point out that you can damage eachother when in LS (when inside the F11 map)
Whenever you hit someone, the other player doesn't even react to the hit (he doesn't fall back or anything)
Any idea on what's causing this? And a possible fix?
-
It is possible, I have seen it been done before.
-
As the title says, are there any way of adding an interior to all dimensions;
We've mapped a custom interior, and are gonna make it like a "standard" interior, for all boats to use (you can enter the boat)
Yet, each boat got it's own dimension for the interior, so players won't run into eachother when entering their boat.
So, is there any way I could make a .map file, be in all dimensions?
-
Uhm, am I mistaken, or did the original creator of the script not leak it himself? Lol.
-
https://community.multitheftauto.com/index.php?p= ... ils&id=960
-From a single search here on the forums, I found a guy linking to that.
-
I'll just have to bump this as I've seen several people with the same problem, but no solution
-
Changed the first code to this;
function spawnFirst () setPlayerTeam (source, Civil) end addEventHandler("onPlayerSpawn", getRootElement(), spawnFirst )
He never called his function, and when he afterwards did, it interfeered with his spawn system, works now.
-
No problem, mate.
-
http://www.sendspace.com/file/favggu - Download that, and place it in your "server\mods\deathmatch" folder, and then start your server, afterwards tents and players should save, and vehicles should spawn.
-
Added on skype, it'll go alot more smooth there, I'll return with the solution and problem.
-
Worst part is that with the current mobile techonology, it's actually possible.. :3
-
Tjo, vi er ihvertfald ikke helt døde endnu.
-
Can't wait to see how this turns out, haha, looks great mate.
-
Please post the full code of the first code, include the eventHandler too, and it's onClientPlayerSpawn, did you try to make the script client-sided?
-
So, I mapped a small chinatown for this server I was playing on, but I might aswell just release it.
Pictures;
Download link; http://www.sendspace.com/file/ko3xpo
Use as you want, but leave credits
-
Did you add the internaldb.dll?
-
What eventHandler are you using on the first code you posted?
Try making it client-side, using this eventhandler; onClientPlayerSpawn (https://wiki.multitheftauto.com/wiki/On ... layerSpawn)
-
Add the "Offduty" team above the spawn, is the two codes in the same script? Perhaps try something like this;
function spawnFirst () local mySkins = { 7, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 30, 35, 33, 34, 37, 40, 41, 43, 45, 41, 46, 47, 48, 51, 52, 59, 60, 66, 67, 78, 98, 101, 123, 124, 125, 128,138, 143, 144 } local OffDuty = setPlayerTeam ( "OffDuty", 0, 0, 0 ) spawnPlayer (source, 1684.73242, -2330.71021, 13.54688, 360, mySkins[math.random(1, #mySkins)], 0, 0, OffDuty) setCameraTarget (source, source) fadeCamera(source, true, 2.0) end
If not, try this;
function spawnFirst () local mySkins = { 7, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 30, 35, 33, 34, 37, 40, 41, 43, 45, 41, 46, 47, 48, 51, 52, 59, 60, 66, 67, 78, 98, 101, 123, 124, 125, 128,138, 143, 144 } spawnPlayer (source, 1684.73242, -2330.71021, 13.54688, 360, mySkins[math.random(1, #mySkins)], 0, 0, "OffDuty") setCameraTarget (source, source) fadeCamera(source, true, 2.0) end
(Adding "" around OffDuty, as the team is a name)
EDIT3: I think the last code should do the job, but I'll leave both here for now
-
As the title says, the zombies from Slothman's Zday infestation script simply won't spawn.
I'm trying to get them spawning through the constant streaming function, and the skins get's added, alongside with the small counter in the right corner, but no zombies spawn!
I've tried upgrading the resource, and I've tried running in debug mode.
I've tried to "info zombie-system" yet it appears to be running all fine, according to console that is.
It does not give any error/warnings when loading, reloading or stopping the resource.
-
You guys are forgetting that Daniels, THE CREATOR OF THE vG SCRIPTS.
Released these scripts, for everyone to use, I bought them of off him back in 2011.
-
Samer, this is not the vG script, it's used in it, sure, but this Elevator script was made by Mabako, and given to me by Mabako.
-Therefor, it is not a "vG script".
Nonetheless, I fixed it myself.
-
Hey guys, so, I am working on a RP gamemode atm, which uses very few parts of the Valhalla script.
(Elevator system and half of the item system)
Anyways, I've been trying to get the elevator system to work, yet whenever I try it out ingame, it simply gives me the error: "There was an error while creating an elevator. Try again."
I've posted the code giving trouble below, any suggestions?
Note: The mysql db seems to be fine, yet the query does not get added.
function createElevator(thePlayer, commandName, interior, dimension, ix, iy, iz) if (exports.global:isPlayerSuperAdmin(thePlayer)) or (exports.donators:hasPlayerPerk(thePlayer,14) and exports.global:isPlayerFullAdmin(thePlayer)) then if not (interior) or not (dimension) or not (ix) or not (iy) or not (iz) then outputChatBox("SYNTAX: /" .. commandName .. " [interior ID] [Dimension ID] [X] [Y] [Z]", thePlayer, 255, 194, 14) else local x, y, z = getElementPosition(thePlayer) interior = tonumber(interior) dimension = tonumber(dimension) local interiorwithin = getElementInterior(thePlayer) local dimensionwithin = getElementDimension(thePlayer) ix = tonumber(ix) iy = tonumber(iy) iz = tonumber(iz) id = SmallestElevatorID() if id then local query = mysql:query_free("INSERT INTO elevators SET id='" .. mysql:escape_string(id) .. "', x='" .. mysql:escape_string(x) .. "', y='" .. mysql:escape_string(y) .. "', z='" .. mysql:escape_string(z) .. "', tpx='" .. mysql:escape_string(ix) .. "', tpy='" .. mysql:escape_string(iy) .. "', tpz='" .. mysql:escape_string(iz) .. "', dimensionwithin='" .. mysql:escape_string(dimensionwithin) .. "', interiorwithin='" .. mysql:escape_string(interiorwithin) .. "', dimension='" .. mysql:escape_string(dimension) .. "', interior='" .. mysql:escape_string(interior) .. "'") if (query) then --reloadOneElevator(id, true) loadOneElevator(id) outputChatBox("Elevator created with ID #" .. id .. "!", thePlayer, 0, 255, 0) end else outputChatBox("There was an error while creating an elevator. Try again.", thePlayer, 255, 0, 0) end end end end addCommandHandler("addelevator", createElevator, false, false)
-
Seems quite.. Nice.
-Would you mind throwing me a PM?
-
Hello.
-You could check the MTA Resource center, or you could simply google it (Or search the forums)
-I do not know what this resource is about, yet, I could imagine that you simply put the resource files into the resource folder, and add the resources to your mtaserver.cfg.
-Cheers.
Can't do melee dmg? Too long away from LS?
in Scripting
Posted
I kind of guessed that.
Is there any possible fix?