MasterTobi Posted December 2, 2008 Share Posted December 2, 2008 hey my prob is: function Jobjoin(client) if (client) then if (getElementPosition(client) == getElementPosition(createColCircle (1647.2434,-1815.3563,10)) )then outputChatBox ("ok",client ) end end end addCommandHandler ( "enter", Jobjoin) when i in the circle and type /enter then they dont outputChatBox ("ok",client ) Link to comment
DiSaMe Posted December 2, 2008 Share Posted December 2, 2008 Your function needs to have command name argument. And it's still impossible to make that message appear: player must be in the exact center of circle because it checks position. It's better to create a colshape outside function and then use IsElementWithinColShape in this function. Link to comment
Gamesnert Posted December 2, 2008 Share Posted December 2, 2008 It also seems to be creating new colcircles everytime it's executed. colshape=createColCircle (1647.2434,-1815.3563,10) function Jobjoin(client) if (client) then if (isElementWithinColShape(client,colshape))then outputChatBox ("ok",client ) end end end addCommandHandler ( "enter", Jobjoin) For example. This should work. Link to comment
MasterTobi Posted December 2, 2008 Author Share Posted December 2, 2008 oh okey thank xou very much its perfekt 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