Dark_PL Posted April 13, 2012 Share Posted April 13, 2012 Witam, potrzebuje pomocy.. Mianowicie chodzi o taki skrypt: safecol = createColCuboid ( 873.62213134766, -405.2360534668, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 873.62213134766, -405.2360534668, 455, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if ( skin == 287 ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("Witaj w bezpiecznym mieście!", hitPlayer, 0, 255, 0) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("Właśnie wyszedłeś z bezpiecznej strefy, uważaj na siebie!", hitPlayer, 255, 0, 0) if not ( skin == 287 ) then killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) Chciałbym aby ta "strefa" była w dillimore i nie wiem jak to zrobić... Proszę o szybką pomoc ! Link to comment
dzek (varez) Posted April 13, 2012 Share Posted April 13, 2012 W pierwszej (niepustej) linii i drugiej masz koordynaty (873, -405) - zamień je na koordy, które chcesz. dziwny kod. raczej nie działa tak jak oczekujesz (tj nie blokuje możliwości użycia broni w bezpiecznej strefie) 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