
myonlake
Members-
Posts
2,312 -
Joined
-
Days Won
41
Everything posted by myonlake
-
addCommandHandler("godmode", function() if exports.global:isPlayerSuperAdmin() then if getElementData(source, "godmode") and getElementData(source, "godmode") == true then setElementData(localPlayer, "godmode", false) outputChatBox("God Mode is now disabled.", 0, 255, 0, false) else setElementData(localPlayer, "godmode", true) outputChatBox("God Mode is now enabled.", 0, 255, 0, false) end end end ) function togdamage(attacker, weapon, bodypart) if getElementData(source, "godmode") and getElementData(source, "godmode") == true then cancelEvent() end end addEventHandler("onClientPlayerDamage", localPlayer, togdamage)
-
@blazy, he doesn't want that. @teteomar, you can use 'guied' resource to make the GUI window(s). Make that first and then make up a script and we'll help you if it doesn't work.
-
Hello, You forgot to put the marker's alpha integer over there, here you go, set to 150. addEventHandler("onPlayerDamage", root, function arrest(attacker, weapon, bodypart, loss) local weap = getWeaponNameFromID(3) local playerTeam = getPlayerTeam(source) if playerTeam == "Police" then if getPlayerWantedLevel(attacker) > 0 then if weap then arrestMarker = createMarker(1119, 1034, 10, "cylinder", 2.5, 255, 255, 0, 150, source) addEventHandler("onMarkerHit", arrestMarker, mhit) toggleAllControls(attacker, false) local ax, ay, az = getElementPosition(attacker) local cx, cy, cz = getElementPosition(source) local d = getDistanceBetweenPoints3D(ax, ay, az, cx, cy, cz) if d > 10 then setElementPosition(attacker, cx - 5, cy, cz) end end end end end ) function mhit(player) if getPlayerTeam(source) ~= "Police" then if getPlayerWantedLevel(player) > 0 then setElementInterior(player, 6) setElementPosition(player, 264.74969, 77.49036, 1001.03906) end end end
-
No. You must put the weapon's world object ID into the object part which can be found from Map Editor by searching for "M4" or "Colt" or so. I also prefer this: addEventHandler("onClientResourceStart", resourceRoot, function() -- code end ) Or just leave the event off and only put the functions in the file, works.
-
Seriously, never try to run Valhalla Gamemode if you don't know anything. This is a simple issue, which is something to do with your SQL file type. Change the type and it works. I am still and always saying: no matter how beautiful the script is, no one cares because you're lame. There are no other successful vG servers than the original one. Oh my god -.-
-
Single Player weathers are randomly generated, they have nothing to do with right or wrong. And I am not completely sure what do you mean with your question. You want a specific weather to show up at a specific time depending on the environment and time?
-
So in another words. function buttonClick(button, state, x, y) if (button) ~= "left" then return end if (source == lol) then showCursor(false) elseif (source == button) then triggerEvent("MyEvent", localPlayer) end end addEventHandler("onClientGUIClick", root, buttonClick, false)
-
MTA has an automatically installed traffic resource. You can use the 'traffic' resource and see what it does. Also, there is a pedestrian resource, having some bugs but the main idea is working. http://flobu.fl.funpic.de/MTA/citizens.rar
-
Also, do not create a thread dedicated to a user on forums. Use private message or make it public.
-
So you will get in :~ if you use their scripts? .. I don't see what you mean. You won't probably even know how to make it working so.
-
You all have wrong information. Mount is still in Valhalla Gaming as a server owner, Daniels is not, he was banned a year or two ago for sharing his own script. Mabako, the main leading scripter was banned due to bug abuse and power gaming for the 10th time already I guess? He leaked the newest 4.0.24 script, but Mount deleted the leakage and only a few got it. No one has hacked anything.
-
This version is for the User Control Panel. It means you cannot register in game, it must be done either from the database or the website files. The thing is, I am not promoting you to use this game mode at all, I am just telling you the facts here, you cannot register without proper knowledge of this system.
-
Try this, your script is a mess anyways so I am not assuming this would work anyways. function loginHandler(username, password) local = connect = dbConnect("mysql", "dbname=mta_userdata;host=127.0.0.1", "root", "klaas", "share=1") if connect then local query = dbQuery(connect, "SELECT Name, Passwort FROM `user` WHERE Name = `" .. username .. "`, Passwort = `" .. password .. "`") if query then spawnPlayer(source, 1959.55, -1714.46, 10) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Willkommen!", source, 0, 255, 0, false) else outputChatBox("Invalid username and password. Please reconnect and try again.", source, 255, 0, 0, false) end dbFree(query) end end addEvent("submitLogin", true) addEventHandler("submitLogin", root, loginHandler)
-
Sorry, I do not have any Skype or other communication devices. You can just add it here or private message me.
-
Finding them later today, going to work now. For easy finding, you should use words in the search that describe the object itself. For example if it's a small warehouse, you could search for 'warehouse' and such. EDIT: Here you go Object ID: 1686 LOD ID: N/A Object ID: 12854 LOD ID: N/A Object ID: 956 LOD ID: N/A Object ID: 1438 LOD ID: N/A Object ID: 1510 LOD ID: N/A Object ID: 1512 LOD ID: N/A Object ID: 1514 LOD ID: N/A Object ID: 2362 LOD ID: N/A Let me know if there's something else.
-
Answer to the first question: setElementHealth
-
Not everything is included in the world edit tool, you can find those objects easily from the very beginning of the all objects. I'll find you these in few minutes. EDIT: Here you go Object ID: 1449 LOD ID: N/A Object ID: 1438 LOD ID: N/A Object ID: 1482 LOD ID: N/A Object ID: 1684 LOD ID: N/A
-
But I can tell you that, that if this comes, don't expect LUA (I GUESS).
-
It depends, we don't even know if it's capable of modifications. But anyways, hoping if yes. However, game will be released in the 2012 December if I remember right. PC version is out 2013 January.
-
Game mode name will be made with DrakeN's function suggestion. If the game mode name is too big, it should/will maybe show up as MTA:SA. Usually when you start a game mode, it renames the type automaticly as how it is marked in the meta.xml: <info name="gamemodename"/> It will put the type as gamemodename after.