Turbe$Z Posted April 23, 2017 Share Posted April 23, 2017 colShape = createColCuboid( -2061.63379, 1096.16113, 53, 30.0, 25.0, 25.0 ) addEventHandler( "onColShapeHit", colShape, function( hitElement, dimension, thePlayer ) if not ( dimension ) then return false end if( isElement( hitElement) and getElementType( hitElement ) == "player" ) then local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if not( isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) ) then local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh, -2052.28589, 1087.36926, 55.71875 ) else setElementPosition(thePlayer, -2052.28589, 1087.36926, 55.71875 ) end outputChatBox("#FFffFFTe ide nem jöhetsz be! Ki lettél rugva a helyről.", thePlayer, 255, 255, 255, true) end end end) what wrong? Link to comment
NeXuS™ Posted April 23, 2017 Share Posted April 23, 2017 (edited) Replace both "thePlayer" at line nr. 8 and line nr. 12 with "hitElement". Edited April 23, 2017 by NeXuS™ 2 Link to comment
Turbe$Z Posted April 23, 2017 Author Share Posted April 23, 2017 2 minutes ago, NeXuS™ said: Replace both "thePlayer " at line nr. 8 and line nr. 12 to hitElement. Oh, thanks.:o 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