-
Posts
767 -
Joined
-
Last visited
Everything posted by Xierra
-
Anyone? Please reply! It's important! Well if there's nobody answering, maybe I'll post it on the community with robhol as the creator.
-
Yep, without codes, how should people fix it? An exception, that is when you don't know where to start.
-
It's superb! Since I saw the video here, The results is looking like in the original GTA! Well vovo4ka just now gave us a tutorial video. Take a look here: It's a beginner's tutorial how to make peds, move them, animate them, enter a vehicle (and move them), and poof, It's great!
-
Excuse me, rhbk, are you still updating this GM? One question, how to make anti rush element? (for everyone, it's just like maplimits)
-
wow! I didn't even know your design is that so professional! Nice! (Going to make this map support BaseMode later. )
-
How should I activate the script? *EDIT: I don't mean that, what should I do to rotate around the vehicle by a command for example? karlis hasn't told me yet
-
Based on this part (line 65 until end of the function): function RegisterPlayer(playerSource, commandName, id, password) if GetPlayerValue(playerSource, "Registered") then outputChatBox ("이미 가입 하셨습니다. 로그인 해주세요.", playerSource ) return end local UFN = GetUserFileName(id) if IsXmlCreated(UFN) then outputChatBox ("이미 이 아이디는 생성 되있습니다.", playerSource ) else local thenode = xmlCreateFile (UFN, "UserData") if thenode then xmlNodeSetValue (thenode, password) xmlCreateChild (thenode, "Info") xmlSaveFile(thenode) xmlUnloadFile(thenode) outputChatBox ("성공적으로 아이디가 생성되었습니다.", playerSource ) SetPlayerValue(playerSource, "Registered", true) setTimer(SavePlayer, 3000, 1, playerSource, id) else outputChatBox ("계정생성중 오류가 발생하였습니다.", playerSource ) outputChatBox ("[아이디는 영어로 해주세요]", playerSource ) end end end function LoginPlayer(playerSource, commandName, id, password) local UFN = GetUserFileName(id) local thenode = xmlLoadFile(UFN) if thenode then if xmlNodeGetValue(thenode) == password then local thenode_info = xmlFindChild (thenode, "Info", 0) SetPlayerValue(playerSource, "Password", xmlNodeGetValue(thenode)) SetPlayerValue(playerSource, "Age", xmlNodeGetAttribute (thenode_info, "Age")) outputChatBox ("성공적으로 로그인 되었습니다.", playerSource) else outputChatBox ("비밀번호가 틀립니다.", playerSource) print(xmlNodeGetValue(thenode)..password) end xmlUnloadFile(thenode) else outputChatBox ("존재하지 않는 아이디입니다.", playerSource) end end addCommandHandler ( "Check", consoleCheckParameters) addCommandHandler ( "register", RegisterPlayer) addCommandHandler ( "login", LoginPlayer) I'll give you a little translation of the outputChatBox writings. They're korean language. (Used a Google Translate) First output: You have already signed up. Please login. Second Output: Nick has already generated a doeitseupnida. (huh? generated what?) Third Output: Nick has been generated successfully. Fourth Output: St seongjung error has occurred account (maybe: "An account error has occured") Fifth Output: [sign Nick in English] (maybe: "Sign up/in your nick in English Language") Sixth Output: You have successfully logged in. Seventh Output: The password is incorrect. Ninth Output: Nick is a non-existent (maybe: "The nick doesn't exist") Means it should be like this: GRoot = getRootElement() GRRoot = getResourceRootElement() UserFolderName = "UserFolder" function OnModeStart(startedmode) SecondTimerAddress = setTimer(SecondTimer, 1000, false) end function OnPlayerJoin() ResetPlayerValue(source) fadeCamera(source, true) SpawnPlayer(source) setCameraTarget(source, source) ClearChatBox(source) end function OnPlayerTarget(targetelement) end function OnPlayerSpawn() setElementPosition ( source, 100, 100, 20) end function OnPlayerWasted(ammo, killerelement, weapon, bodypart) setTimer(SpawnPlayer, 5000, 1, source) end function OnPlayerDamage(attackerelement, weapon, bodypart, damage) end function OnPlayerChat(message, messageType) cancelEvent() outputChatBox("[Player] ".. getPlayerName(source) .. " : " .. message) end addEventHandler("onResourceStart", GRRoot, OnModeStart) addEventHandler("onPlayerTarget", GRoot, OnPlayerTarget) addEventHandler("onPlayerJoin", GRoot, OnPlayerJoin) addEventHandler("onPlayerSpawn", GRoot, OnPlayerSpawn) addEventHandler("onPlayerWasted", GRoot, OnPlayerWasted) addEventHandler("onPlayerDamage", GRoot, OnPlayerDamage) addEventHandler("onPlayerChat", GRoot, OnPlayerChat) function consoleCheckParameters ( playerSource, commandName, ... ) local parametersTable = {...} local parameterCount = #parametersTable outputChatBox ( "Number of parameters: " .. parameterCount, playerSource ) local stringWithAllParameters = table.concat( parametersTable, ", " ) outputChatBox ( "Parameters passed: " .. stringWithAllParameters, playerSource ) end function RegisterPlayer(playerSource, commandName, id, password) if GetPlayerValue(playerSource, "Registered") then outputChatBox ("You have already signed up. Please login.", playerSource ) return end local UFN = GetUserFileName(id) if IsXmlCreated(UFN) then outputChatBox ("Nick has already generated a doeitseupnida.", playerSource ) else local thenode = xmlCreateFile (UFN, "UserData") if thenode then xmlNodeSetValue (thenode, password) xmlCreateChild (thenode, "Info") xmlSaveFile(thenode) xmlUnloadFile(thenode) outputChatBox ("Nick has been generated successfully.", playerSource ) SetPlayerValue(playerSource, "Registered", true) setTimer(SavePlayer, 3000, 1, playerSource, id) else outputChatBox ("An account error has occured", playerSource ) outputChatBox ("[sign up your nick in English]", playerSource ) end end end function LoginPlayer(playerSource, commandName, id, password) local UFN = GetUserFileName(id) local thenode = xmlLoadFile(UFN) if thenode then if xmlNodeGetValue(thenode) == password then local thenode_info = xmlFindChild (thenode, "Info", 0) SetPlayerValue(playerSource, "Password", xmlNodeGetValue(thenode)) SetPlayerValue(playerSource, "Age", xmlNodeGetAttribute (thenode_info, "Age")) outputChatBox ("You have successfully logged in.", playerSource) else outputChatBox ("The password is incorrect.", playerSource) print(xmlNodeGetValue(thenode)..password) end xmlUnloadFile(thenode) else outputChatBox ("The nick doesn't exist.", playerSource) end end addCommandHandler ( "Check", consoleCheckParameters) addCommandHandler ( "register", RegisterPlayer) addCommandHandler ( "login", LoginPlayer) function SpawnPlayer(playerelement) spawnPlayer(playerelement, 0.0, 0.0, 0.0, 0.0, 0) end function GiveElementHealth(theelement, health) setElementHealth(theelement, getElementHealth(theelement) + health) end function GetConnectedPlayers() local playerstable = getElementsByType("player") return table.getn(playerstable) end function SecondTimer() local playerstable = getElementsByType("player") for tablepos, tableelement in ipairs(playerstable) do local x, y, z = getElementPosition(tableelement) --triggerClientEvent (tableelement, "onExplosionBlood", tableelement, x, y, z) end end function ClearChatBox(playerelement) for i = 0, 15 do outputChatBox(" ", playerelement) end end function GetUserFileName(id) return string.format("%s/%s.xml", UserFolderName, id) end function IsXmlCreated(xmlname) if not xmlLoadFile(xmlname) then return false end xmlUnloadFile(xmlname) return true end function MakeXmlFile(xmlname, subject) local thenode = xmlCreateFile (xmlname, subject) if thenode then xmlSaveFile(thenode) end end function GetPlayerValue(playerelement, valuename) return getElementData (playerelement, valuename) end function SetPlayerValue(playerelement, valuename, value) return setElementData (playerelement, valuename, value) end function ResetPlayerValue(playerelement) SetPlayerValue(playerelement, "Registered", false) SetPlayerValue(playerelement, "Age", 0) end function SavePlayer(playerelement, id) local pnode = xmlLoadFile(GetUserFileName(id)) local thenode_info = xmlFindChild (pnode, "Info", 0) xmlNodeSetAttribute (thenode_info, "Age", GetPlayerValue(playerelement, "Age")) xmlSaveFile(pnode) xmlUnloadFile(pnode) end Great, I think I have helped a bit?
-
Ehh, hunja! The former MTA mapper. To everyone, the link (http://www.center.mtasa.com which is a center for maps) is already down, and I and the others can't take most maps from the MTA Race forums. So sad. Btw, can you also post your maps again? You can convert it to MTA 1.0 map here: http://gtamap.delux-host.com/converter/ But I don't have it, sorry.
-
Okay, but how will this work? What should I do to activate it?
-
uhh, what are those map editor programs? You could just make maps without them you know.
-
Nice! It's Great for a trailer or something. Keep up the good work. But I don't know how to do it. Why not give a tutorial? I don't understand how to do it.
-
Hi guys! I want to ask about this because I don't know how to move by moving and rotating. Something like a car showroom, with camera rotating around the car. I've read the wiki about camera functions. But I don't know how to do a rotating camera on an element (vehicle) like in some servers. I don't know about those 1x like that, My maths aren't as good as that. Can you give me an example of it, so I can make something like that?
-
Make sure you don't start any gamemode when testing. Just take the none ones when trying to test. Or, why not take the latest resources pack which was recently fixed, which is here: http://code.google.com/p/multitheftauto ... loads/list and newer fixes here: http://code.google.com/p/multitheftauto ... ource/list
-
On the community, it says for RP or RPG, and Freeroam, for fun!
-
You're welcome. I'll post the second ones later.
-
maybe you can make it move to another dimension, then go back to 0 and respawn?
-
Hey, I thinked the same thing. It's very realistic! I hope I could get a Excellent computer for something like that. Anyway, you still can use these in MTA SA too! It doesn't make any "GTA San Andreas Files has been modified" things. That's why I put : "Multiplayer Compatible".
-
First, you'll see this: boxwille = createVehicle ( 495, 1226.8956298828, -987.04681396484, 43.686561584473, 0, 0, 87.609985351563 ) -- create us a new vehicle if ( boxwille ) then setVehicleRespawnDelay ( newvehicle, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown end sanchez1 = createVehicle ( 1222.3643798828, -982.44836425781, 43.686561584473, 0, 0, 87.609985351563 ) if ( sanchez1 ) then setVehicleRespawnDelay ( newvehicle, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown end sanchez2 = createVehicle ( 1222.3643798828, -991.80096435547, 43.686561584473, 0, 0, 87.609985351563 ) if ( sanchez1 ) then setVehicleRespawnDelay ( newvehicle, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown end A bit messed up! Check line 6 and 10. And you forgot to put the vehicle ID on line 5 and 9! and also the argument for setVehicleRespawnDelay is wrong. I guess you forgot to add the function. So the result must be: function vehicles() boxwille = createVehicle ( 495, 1226.8956298828, -987.04681396484, 43.686561584473, 0, 0, 87.609985351563 ) -- create us a new vehicle if ( boxwille ) then setVehicleRespawnDelay ( boxwille, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown sanchez1 = createVehicle ( 468, 1222.3643798828, -982.44836425781, 43.686561584473, 0, 0, 87.609985351563 ) if ( sanchez1 ) then setVehicleRespawnDelay ( sanchez1, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown sanchez2 = createVehicle ( 468, 1222.3643798828, -991.80096435547, 43.686561584473, 0, 0, 87.609985351563 ) if ( sanchez2 ) then setVehicleRespawnDelay ( sanchez2, 900000 ) -- tell the server to respawn the vehicle 15 minutes after it's blown end end end It's not tested yet so test it. I also didn't see any event handlers. Why not put a event handler to start it , like: addEventHandler( "onClientResourceStart", getRootElement( ),>function name<
-
Any comments? I hope you like these mods. For the tools, here is the tools you need. TXD workshop: Here Alci's IMG editor: Here
-
Yeah you're right. But I already got the resource for a while. Just wait for response from the others. I also get "Invalid Resource" for that.
-
Thanks eAi, but how can I do that? can you give me an example? sorry
-
function spawn(player) repeat until spawnPlayer ( player, -711+math.random(1,5), 957+math.random(5,9), 12.4, 90, math.random(9,288) ) fadeCamera(player, true) setCameraTarget(player, player) end To edit the position, look here: repeat until spawnPlayer ( player, -711+math.random(1,5), 957+math.random(5,9), 12.4, 90, math.random(9,288) ) -- ^X^ ^Y^ ^Z^ ^rotZ You can edit the positions by the coordinates I given. and michael_tuner, use [lua] for codes.
-
I've been asking the same question and it's solved. here's the code: function spawn(player) local spawns = { { -2030.1610107422, 172.25221252441, 28.8359375, 270.0 }, { -1951.3865966797, 703.58880615234, 46.5625 }, { -1942.5206298828, 486.96841430664, 31.96875 }, { -2648.3989257813, -28.41300201416, 6.1328125, 179.42449951172 }, { -2500.03515625, 127.93914794922, 24.475505828857, 88.557006835938 }, {x,y,z,rotZ} -- You can still add more spawns here. to get your current position ingame, just write /gp and copy it in console. } function spawn( player ) local rnd = math.random( 1, #spawns ) spawnPlayer( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3], spawns[rnd][4] ) -- [1] is X, [2] is Y, [3] is Z, and [4] is rotZ. end -- You will spawn randomly from the coordinates up there everytime you start that resource. end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 3000, 1, source) -- You can set when you will spawn again in miliseconds. end ) Good luck!
-
I know that's a bit rude but it's pretty hard to find car mods which doesn't need to modify the handling. What does "pirates" mean here? Men who wear eyepatch with a pirate ship? What's the connection here? I don't get it. Argh! I want to visit the website and it's gone!! Can you tell me the link of his website just now who posted the recent car?
-
I already know about the white textures, but I already tried to restart it many times, but still white... why? (oh yeah, I loaded it on Map Editor. Added col)
