Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
GTA Modding
How do i activate the "securezone" script {HElp}
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="wuggybear" data-source="post: 212920" data-attributes="member: 23215"><p>I have problems working this script like what is a radar one and crap </p><p>[CODE]</p><p>--COPY ALL OF THIS BUT CHANGE, radar1, zone1, enterArea1, warp1, displayTimer1, (And sometimes the "function.addAccount")--</p><p>radar1 = createRadarArea(84, 1774,320,370,0,255,0, 100)</p><p>setElementData(radar1,"zombieProof",true)</p><p>Zone1 = createColRectangle (84, 1774,320,370)</p><p> </p><p>addEventHandler("onColShapeHit", Zone1,</p><p>function(h)</p><p> if not isElement(h) then return end</p><p> if getElementData(h,"zombie") then killPed(h) end --These zones are also zombie proof</p><p>end)</p><p> </p><p>function enterArea1(thePlayer)</p><p> local posX, posY = getElementPosition(thePlayer)</p><p> local inArea = isInsideRadarArea(radar1, posX, posY)</p><p> if (inArea) then</p><p> if hasObjectPermissionTo(thePlayer, "function.addAccount", false) then --Specify who can enter the zone</p><p> primaryWeaponControl = isControlEnabled ( thePlayer, "fire" )</p><p> if ( primaryWeaponControl == true ) then</p><p> toggleControl ( thePlayer, "fire", false ) -- change to true/false to allow/disallow shooting.</p><p> outputChatBox("***Safe Zone***", thePlayer, 0, 255, 0, true)</p><p> end</p><p> else</p><p> triggerClientEvent(thePlayer, "displayTimer1", thePlayer)</p><p> end</p><p> end</p><p>end</p><p>addEventHandler("onColShapeHit", Zone1, enterArea1)</p><p> </p><p>function warp1()</p><p> local posX, posY = getElementPosition(source)</p><p> local inArea = isInsideRadarArea(radar1, posX, posY)</p><p> if (inArea) then</p><p> if hasObjectPermissionTo(source, "function.addAccount", false) then --Specify who can enter the zone</p><p> outputChatBox("***CHECKER*** You are allowed in this zone.", source, 0, 255, 0, true)</p><p> else</p><p> outputChatBox("You are not allowed in this area, Sorry...", source, 255, 0, 0, true)</p><p> outputChatBox("You have been warped.", source, 255, 0, 0, true) </p><p> if isPedInVehicle ( source ) then</p><p> local playerVehicle = getPedOccupiedVehicle ( source )</p><p> setElementPosition(playerVehicle, 2341.2072753906, -1658.8668212891, 13.379216194153)</p><p> else</p><p> setElementPosition(source, 2341.2072753906, -1658.8668212891, 13.379216194153)</p><p> end</p><p> end</p><p> end</p><p>end</p><p>addEvent("warp1", true)</p><p>addEventHandler("warp1", root, warp1)</p><p>---------------------------------------------------------------------------------------------------------------------------------------------</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="wuggybear, post: 212920, member: 23215"] I have problems working this script like what is a radar one and crap [CODE] --COPY ALL OF THIS BUT CHANGE, radar1, zone1, enterArea1, warp1, displayTimer1, (And sometimes the "function.addAccount")-- radar1 = createRadarArea(84, 1774,320,370,0,255,0, 100) setElementData(radar1,"zombieProof",true) Zone1 = createColRectangle (84, 1774,320,370) addEventHandler("onColShapeHit", Zone1, function(h) if not isElement(h) then return end if getElementData(h,"zombie") then killPed(h) end --These zones are also zombie proof end) function enterArea1(thePlayer) local posX, posY = getElementPosition(thePlayer) local inArea = isInsideRadarArea(radar1, posX, posY) if (inArea) then if hasObjectPermissionTo(thePlayer, "function.addAccount", false) then --Specify who can enter the zone primaryWeaponControl = isControlEnabled ( thePlayer, "fire" ) if ( primaryWeaponControl == true ) then toggleControl ( thePlayer, "fire", false ) -- change to true/false to allow/disallow shooting. outputChatBox("***Safe Zone***", thePlayer, 0, 255, 0, true) end else triggerClientEvent(thePlayer, "displayTimer1", thePlayer) end end end addEventHandler("onColShapeHit", Zone1, enterArea1) function warp1() local posX, posY = getElementPosition(source) local inArea = isInsideRadarArea(radar1, posX, posY) if (inArea) then if hasObjectPermissionTo(source, "function.addAccount", false) then --Specify who can enter the zone outputChatBox("***CHECKER*** You are allowed in this zone.", source, 0, 255, 0, true) else outputChatBox("You are not allowed in this area, Sorry...", source, 255, 0, 0, true) outputChatBox("You have been warped.", source, 255, 0, 0, true) if isPedInVehicle ( source ) then local playerVehicle = getPedOccupiedVehicle ( source ) setElementPosition(playerVehicle, 2341.2072753906, -1658.8668212891, 13.379216194153) else setElementPosition(source, 2341.2072753906, -1658.8668212891, 13.379216194153) end end end end addEvent("warp1", true) addEventHandler("warp1", root, warp1) --------------------------------------------------------------------------------------------------------------------------------------------- [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
GTA Modding
How do i activate the "securezone" script {HElp}
Top