iPanda Posted July 14, 2013 Share Posted July 14, 2013 Tell me, how do I make the zone of radiation on the RPG server!? Option means that under the radiation on the server: 1. This specific locations on the map. 2. If you get to the radiation - will drop health 3. When injected into the radiation appears sound of a Geiger counter. Radiation zone - this is what you can see in the game Fallout 3 or STALKER. I need to know how to make these areas and what features are needed for this? I hope you can help me ... I look forward to your response! Link to comment
iPanda Posted July 14, 2013 Author Share Posted July 14, 2013 Объясните мне немного. I want to make the radiation zone on its server MTA. These areas must be the same as the games Fallout 3 or STALKER. The above are 3 points detail the functions of radiation. Link to comment
iMr.3a[Z]eF Posted July 14, 2013 Share Posted July 14, 2013 i don't play Fallout 3 and STALKER. So can you give me a pics to understand what kind of radiation zone? Link to comment
MIKI785 Posted July 14, 2013 Share Posted July 14, 2013 Colshape should do it. Check the wiki for relevant functions. Link to comment
LucasBaker Posted July 14, 2013 Share Posted July 14, 2013 Tell me, how do I make the zone of radiation on the RPG server!?Option means that under the radiation on the server: 1. This specific locations on the map. 2. If you get to the radiation - will drop health 3. When injected into the radiation appears sound of a Geiger counter. Radiation zone - this is what you can see in the game Fallout 3 or STALKER. I need to know how to make these areas and what features are needed for this? I hope you can help me ... I look forward to your response! Not tested/is that what you want? local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 ) function hill_Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " entered into a radioactive zone!", getRootElement(), 255, 255, 109 ) setElementHealth ( thePlayer,- 100 ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) Link to comment
iMr.3a[Z]eF Posted July 14, 2013 Share Posted July 14, 2013 use killPed not setElementHealth. Link to comment
ViRuZGamiing Posted July 15, 2013 Share Posted July 15, 2013 I suggest to use this: Example: -- create our hill area local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 ) -- add hill_Enter as a handler for when a player enters the hill area function hill_Enter ( thePlayer, matchingDimension ) -- announce to everyone that the player entered the hill (you could remove this) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " entered the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) --Sorry but I never use KillPed setElementHealth ( thePlayer, -100) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) -- add hill_Enter as a handler for when a player leaves the hill area function hill_Exit ( thePlayer, matchingDimension ) -- check if the player is not dead if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then -- if he was alive, announce to everyone that the player has left the hill outputChatBox ( getPlayerName(thePlayer) .. " left the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, false ) end end end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) You can change your coordinates to yours Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now