
szlend
Members-
Posts
58 -
Joined
-
Last visited
Everything posted by szlend
-
I've used setElementAlpha before and it always worked fine. I think in Stealth the player is not fully invisible
-
Try function keybind ( source ) bindKey ( source, "r", "down", clientToggleGui ) end addEventHandler( "keybind", keybind )
-
Just played it yesterday on some server with around 8 players. Was pretty fun Nice job
-
Niiice!! Good job Btw I suggest you make players invisible. Looks kinda weird when they're merged with the vehicle lmao
-
I think it's onClientChangeNick(source, oldnick, newnick) since the client side function is OnClientPlayerChangeNick(oldnick, newnick)
-
quoted for the truth
-
It's just useless. If someone really needs your client script he'll just decompile it... Best way to hide the damn code is to make as much of it as you can, server side..
-
Why would you need to compile it anyways ...
-
Hehe it's nice but it glows too much and it's a bit small for my taste. I'll stick to my current object But using moveObject causes a lot of problems since I don't know how to detect when the object collides with the world when I set XY movement. Currently (with only Z axis movement) I use getGroundPosition so i know where to destroy the missile and create an explosion. Any ideas?
-
I suggest analizing this script: viewtopic.php?f=91&t=21256
-
@CJGrove: They can still change it after joining the server
-
Moving the bomb with moveObject sucks, wish i could set the velocity but couldn't.
-
getPlayerUserName should do the trick. About the nick, I think you can only change the nametag http://development.mtasa.com/index.php? ... ametagText
-
Omg thanks, I can't believe i forgot that Will do some tests today and release the fixed script Edit: fixed and tested. Works fine now
-
Maybe because the explosions are client side My bad, will fix that Edit: should be fixed now. too drunk for some serious testing atm
-
Just create another label and apply a different color. I don't think it's possible to have multiple colors in one label.
-
Yesterday i thought of a great idea, a bomb script for Hydra. Well today I've managed to script it so here it is. The bomb currently moves only on the Z axis and with constant speed but I'll fix that in the future. Feel free to use/improve the script. The bomb is dropped with the 'R' key by default. To-do: - Drop delay (To stop bomb spamming) - Bomb acceleration - Bomb XY movement Screenshots: Download: http://rapidshare.com/files/89299762/bomb.zip.html
-
I don't think it's possible for the needle image to rotate at the moment.
-
Just tested and it's awesome! The needle is really smooth
-
Awesome! But 30 seconds? x.x
-
I just hate it when people make their scripts private. I mean the MTA team worked their asses off making this modification, releasing it to everyone and not keeping it private ... Releasing the script to the public makes people able to learn from them, coding their own or improving them and that's what makes a good community.
-
You didn't put any parameters to the function "getVehicleID ( )" and "getVehicleName ( )" http://development.mtasa.com/index.php? ... tVehicleID http://development.mtasa.com/index.php? ... ehicleName
-
Good idea Will do tommorow
-
Since there is no getVehicleEngineState function, I decided to code it. Enjoy The function: function getVehicleEngineState(source) if isElement(source) and getElementType(source) == "vehicle" then return getElementData(source, "engineState") end end We'll also need a new setVehicleEngineState function: function setVehicleEngineState2(source, state) if isElement(source) and getElementType(source) == "vehicle" then setElementData(source, "engineState", state) setVehicleEngineState(source, state) end end And to set vehicle engine off on resource start: function resourceStart() local vehicles = getElementsByType("vehicle") for index, vehicle in pairs(vehicles) do setElementData(vehicle, "engineState", false) end end OnVehicleEnter and OnVehicleRespawn fix: function vehicleEnter() setVehicleEngineState2(source, getVehicleEngineState(source)) end function vehicleRespawn() setVehicleEngineState2(source, false) end ----------------------------------------- Example: function getVehicleEngineState(source) if isElement(source) and getElementType(source) == "vehicle" then return getElementData(source, "engineState") end end function setVehicleEngineState2(source, state) if isElement(source) and getElementType(source) == "vehicle" then setElementData(source, "engineState", state) setVehicleEngineState(source, state) end end function toggleEngine(source) local vehicle = getPlayerOccupiedVehicle(source) if (vehicle) then if (getVehicleEngineState(vehicle) == true) then setVehicleEngineState2(vehicle, false) else setVehicleEngineState2(vehicle, true) end end end function resourceStart() local vehicles = getElementsByType("vehicle") for index, vehicle in pairs(vehicles) do setElementData(vehicle, "engineState", false) end end function vehicleEnter() setVehicleEngineState2(source, getVehicleEngineState(source)) end function vehicleRespawn() setVehicleEngineState2(source, false) end addEventHandler("onResourceStart", getRootElement(), resourceStart) addEventHandler("onVehicleEnter", getRootElement(), vehicleEnter) addEventHandler("OnVehicleRespawn", getRootElement(), vehicleRespawn) addCommandHandler("engine", toggleEngine)
-
Well I can play fine in windowed mode. Actually, playing fullscreen makes me almost invincible so I cannot play in any deathmatch servers. Changing to window mode seems to fix that. I have no idea why