Jump to content

Why not working this script?


Turbe$Z

Recommended Posts

local myCol = createColRectangle (-2039, 165, 22, 20)
local myCol = createColRectangle (1342.5, -1817.4, 38, 40)
local myCol = createColRectangle (1960, 1618.5, 16, 20)

function destroyTheVehicles (player)
	if getElementType (player) == "player" and isPedInVehicle (player) then
		destroyElement (getPedOccupiedVehicle (player))
		outputChatBox ("Ide nem léphetsz be kocsival! Felejtsd el, különben büntit kapsz.", player, r, g, b)
	end
end
addEventHandler ("onColShapeHit", myCol, destroyTheVehicles)

Working on localhost server, but doesn't working on hosted server :S How to fix this bug?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...