-
Posts
551 -
Joined
-
Last visited
Everything posted by AGENT_STEELMEAT
-
I think its just when the zombies punch normally, that can be cancelled, but manual calls on setElementHealth aren't.
-
I just did the same and it cancelled just fine 0.o
-
Actually, R* did release some details about the SA engine a while ago, which might have helped. Also, my opinion on SAMP and MTA is that they are two very different things. SAMP is the TRUE San Andreas multiplayer modification. It makes much more use of the original SA features. MTA is much more than a multiplayer modification. It is a multiplayer platform. A powerful game engine built on top of one of the best games in the history of the industry. That's the difference.
-
Em, yes it does...
-
You should be able to run a small server just fine - are you sure your ports are forwarded properly? Use the 'openports' command to see if they are.
-
Try the following: 1 - Install this version of MTA: https://nightly.multitheftauto.com/mtasa-1.1.1-rc ... 111119.exe 2 - Goto Settings -> Advanced, and set Browser Speed to 'Very Slow'. 3 - Set Debug Setting to '#6323 Network'. Note - this resets every time MTA is started! 4 - Close as many programs on your PC as possible. After that, try to connect to the server, waiting as long as possible before giving up. If you are unable to connect, try asking the server admins to stop a couple of maps to reduce the map download size. Hope this helps.
-
MTAInvaders - A MTA1.1 scripted game[WIP]
AGENT_STEELMEAT replied to unknooooown's question in Client
Excellent work Wafamde! -
The actual element limit is 65535 (I think). I personally love to make use of the element system - however, you do need to know how to ensure you don't lag down the client. I would suggest looking through some of your scripts for ways to increase efficiency. One trick that some people don't know about are using the last two arguments of getElementsByType(). One example is if you have 6000 housing pickups (that use colshapes and objects, not actual 'pickups'), and you want to iterate through all of them on every render to animate them. Many people might do: for _, pickup in ipairs(getElementsByType("housingPickup")) do if isElementStreamedIn(pickup) then --stuff end end Rather than call isElementStreamedIn for all pickups, a better way is to have a single housingPickupRoot element, and use that as the parent element for all pickups. Then, you can do: for _, pickup in ipairs(getElementsByType("housingPickup", housingPickupRoot, true)) do --stuff end This way, only elements that are children of the housingPickupRoot element and are streamed in are iterated through. I have tested this personally and found a noticeable difference. Hope this helps.
-
1. Make a topic, starting with the [TUT] tag. 2. Include some steps describing what the reader has to do. NOTE: Ensure to include a bold note or warning to grab the reader's attention 3. Add some interactive/attention-grabbing content, like this: 4. Add a final step. Now that you have finished the bulk of the tutorial, be sure to add a final closing statement wishing the reader luck.
-
Ehm, no, MTA:SA is for San Andreas, and is totally independent of your San Andreas installation directory anyway. So of course VCMP won't mess is up.
-
I don't know if this is related or not - but in 1.2 I can alt-tab in an interior with the screen being all messed up. I just crash ever now and then.
-
If you hand everyone the answer, they won't learn anything. Sure, short-term it'll be a bit confusing, but long-term they will benefit.
-
local screenWidth, screenHeight = guiGetScreenSize() --This function takes a number from 0 to 100 and returns the absolute x-position on the screen. A value below 0 or over 100 will return values that are off the screen. function getX(xcoord) return screenWidth / 100 * xcoord end --This function takes a number from 0 to 100 and returns the absolute y-position on the screen. A value below 0 or over 100 will return values that are off the screen. function getY(ycoord) return screenHeight / 100 * ycoord end Note, this uses values between 0 and 100, not 0-1 like most people.
-
And if your going to give people full code, put in comments and leave an error or two for them to learn. And devpoint, why would you ever need to use client <-> server communication for replacing some models clientside?
-
I left an error in on purpose just to see if you'd use common sense and fix it. Had you looked at debugscript, you would have noticed that addEventHandler("onClientGUIClick", GUIEditor_Button[1], end) would not work - as 'end' is not even a function. If you cant figure that out, you need to quit scripting.
-
I have the same issue from time to time.
-
--This function is executed when the button is clicked - it warps the local player. local function onTeleportButtonClicked() local localVehicle = getPedOccupiedVehicle(localVehicle) if localVehicle then if getVehicleController(localVehicle) == localPlayer then --IF the player is driving a vehicle, warp the vehicle. setElementPosition(localVehicle, 1523.9138183594, 1527.1204833984, 10.2602405548) return else outputChatBox("* You must be driving the vehicle to warp it!", 255, 0, 0) return end else setElementPosition(localPlayer, 1523.9138183594, 1527.1204833984, 10.2602405548) return end end addEventHandler("onClientGUIClick", GUIEditor_Button[1], end) There is no need to attach the event handler resourceRoot - just the button you are tracking clicks for. Also, the crazy if statement stuff doesn't make much sense.
-
Well, as the title says, where is he?
-
Resources Updated! PlayerBlips2 and VehicleBlips have received some minor changes. I recommend you use the new versions. Glad you all enjoy them!
-
Looking for anyone with a moon shader.
AGENT_STEELMEAT replied to AGENT_STEELMEAT's question in Client
Nevermind, got it! Available at http://pixelterror.ru/up/moon.zip. NSFW -
If anyone has the moon shader (the one that replaces the moon texture with a picture), it would greatly appreciate it if you could send that to me. I'll be using it to replace the moon with g o a t s e. Thanks in advance.
-
A bit off-topic, but important nonetheless: You should never use the root account for your MTA server (or anything in general other than database administration). You should always create a MySQL user for your MTA server, and limit their permissions (i.e making it so they can't use 'DROP TABLE accounts' and modify other tables not related to the MTA sever). If you know for a fact you will only be using your database locally, limit your MTA server's MySQL account to localhost - that way, even if your MySQL credentials are leaked, remote users can not access your database.
-
Exactly.
-
jesus christ
-
Kenix's code is incorrect - the health is automatically given when the player hits the pickup. You'd be giving the player double the reward.
