
myonlake
Members-
Posts
2,312 -
Joined
-
Days Won
41
Everything posted by myonlake
-
You mean invulnerable player. Toggle damage command: /togdamage -- Check if the player is invulnerable addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon, bodypart, loss) if isPlayerInvulnerable(source) then cancelEvent() end end ) -- Command to toggle vulnerability addCommandHandler("togdamage", function(cmd) togglePlayerDamage(localPlayer) end ) -- Checking if the player is invulnerable function isPlayerInvulnerable(player) if player then if getElementData(player, "player.invulnerable") and getElementData(player, "player.invulnerable") == true then return true else return false end end end -- Set the player either invulnerable or vulnerable function togglePlayerDamage(player) if player then if isPlayerInvulnerable(player) then setElementData(player, "player.invulnerable", true, true) else setElementData(player, "player.invulnerable", false, true) end end end Not tested.
-
Well either you delete that download -part from your file tag or then you do the thing Anderl mentioned.
-
Didn't arc_'s animation library have the feature for GUI elements too?
-
As Solidsnake14 already replied, you can find all the nice smooth animations from the race-resource made by arc_.
-
bool setVehicleVariant ( vehicle theVehicle, [ int variant1, int variant2 ] ) Wiki: https://wiki.multitheftauto.com/wiki/SetVehicleVariant Variants list: https://wiki.multitheftauto.com/wiki/Vehicle_variants
-
Well, you can do it in hundred ways. This is just one of them. Hit F8 in-game and type in 'serial'. Copy your serial and put it between the following two quotation marks. local serial = "" -- Enter your /serial here addEventHandler("onVehicleStartEnter", root, function(player, seat, jacked, door) local driver = getVehicleController(source) if driver then if getPlayerSerial(driver) == serial then cancelEvent() outputChatBox("That vehicle is special, can't enter.", player, 255, 0, 0, false) end end end )
-
This is because you are triggering another fadeCamera, which doesn't work while another is triggered. Your script basically fades the camera out to black and then back to the game. Do you want this to happen or stay in black? addEventHandler("onResourceStart", resourceRoot, function teamCreate(source, commandName, teamName) SWATteam = createTeam("SWAT", 65, 105, 255) end ) addCommandHandler("goswat", function getSwatJob(source, teamName) local name = getPlayerName(source) if getPlayerTeam(source) == SWATteam then outputChatBox("You are already in SWAT team", source, 255, 0, 0, false) else fadeCamera(source, false, 3.0) setPlayerTeam(source, SWATteam) setElementModel(source, 285) outputChatBox("Welcome to SWAT team " .. getPlayerName(source) .. ", You may hit 'X' to open SWAT GUI", source, 65, 105, 255, false) setPlayerNametagColor(source, 65, 105, 255) setTimer(fadeCamera, 3000, 1, source, true, 2.0) end end )
-
I don't think there are, or if there are, there ain't so many.
-
Download the latest map editor. http://code.google.com/p/mtasa-resources/downloads/list
-
https://wiki.multitheftauto.com/wiki/OnPlayerJoin
-
Eh, he means you use Photoshop to blur a background image, and then add it in-game via DirectX functions. dxDrawImage If this is still not what you mean, you should check out the shader feature, which was added a while ago. https://wiki.multitheftauto.com/wiki/Shader
-
Yes, this, or if you want to do more tricks than just fading, you can easily just use arc_'s animation library.
-
Image fading in or out. Yes. Use the animation library provided in the race-gamemode. fadeCamera function is only for players, so no.
-
The problem is most probably your freeroam script. There is an automated vehicle respawn defined and that's why you should locate it and delete it from the script.
-
Why are you using globals in the first place.
-
Use MySQL or SQLite. dbConnect dbExec dbQuery dbPoll dbFree
-
As far as I know, you are not able to cancel such commands as /exit, /quit, /reconnect, /connect.
-
You should promote people doing their own scripts, and not using elses.
-
Dude, you don't have the MySQL module. Get it from the wiki. Place in your modules folder and deathmatch folder and make sure your mtaserver.conf includes the file. http://multitheftauto-modules.googlecod ... _mysql.dll
-
There is no legal or illegal copy. You mean leaked script or the real one. There is no official way of getting the gamemode. You can find leaked copies somewhere. No one respects the people who use those scripts so just don't use them, it's annoying, shit and nobody likes that someone actually makes a server out of it. Learn to script if you want to be successful. The script was first released by Daniels, the ex-owner of MTA Valhalla Gaming and MTA Concrete Gaming (current MTA Root Gaming). He didn't actually leak it because he is the one who made the whole code. After that we got Mount as owner, staying as MTA Valhalla Gaming, soon after mabako got crazy (this had happened more than once before..) he leaked the script by himself and a few got it until it was removed from the site. Mabako of course got banned and so on. And this May we turned into MTA Root Gaming because the crappy community owner Jay Ruck couldn't do anything else than take out a server with a record of 152 players. Jay anyways bought vG with more than $2,500.00. He's the worst owner I've ever seen. What else?
-
Depends on the system you're making. Web version is made with XHTML, CSS, PHP and MTA synced with PHP and Lua. Normal in-game thing is made with Lua.
-
Next time it happens, make sure the MTA folder is not set to read-only and you have privileges to change the details. "The memory could not be read" error comes up when this is not true.
-
Hello, My server worked some an hour ago, I wanted to test if the features would work after full restart. So I shut down the server and started it again, but now, suddenly it just closes after I start the program. I checked the logs folder, nothing there. Are there any other log files I should check so I can find out the actual problem? This has never happened to me before and weird how this came up like this. I installed the latest nightly data files again after installing it. I suppose the issue is with the files, maybe they are corrupted somehow? EDIT: Restarting the computer didn't work out. EDIT x2: Alright, well I ended up with re-installing GTA and MTA. Worked out, now working. I did not install the latest nightly build after re-install. EDIT x3: After restarting the server, it did it again. Here is my dump file: http://www.speedyshare.com/Jn6qY/downlo ... 1-1359.dmp.
-
Correct there, I'll update my code.