Jokeℝ1472771893 Posted June 30, 2012 Posted June 30, 2012 local aAllowedGroups = { [ 'Armed Forces' ] = true; [ false ] = false; } local pCol = createColSphere ( 330.99554443359, 1805.4046630859, 17.769592285156, 31 ) local pGate = createObject ( 3113, 344.6220703125, 1797.90625, 18.285552978516, 0, 15, 305 ) function ColShapeManager( pElement ) if getElementType( pElement ) == 'player' and aAllowedGroups[ getElementData ( pElement, 'Armed Forces' ) ] then if eventName == 'onColShapeHit' then moveObject ( pGate, 344.6220703125, 1797.90625, 6.7855529785156, 0, 15, 305 ) else moveObject( pGate, 3037, 344.6220703125, 1797.90625, 18.285552978516, 0, 15, 305 ) end end end addEventHandler( 'onColShapeHit', pCol, ColShapeManager ) addEventHandler( 'onColShapeLeave', pCol, ColShapeManager ) what is problem?
Castillo Posted June 30, 2012 Posted June 30, 2012 We cannot help you if you don't even test your script. What is this? local aAllowedGroups = { [ 'Armed Forces' ] = true; [ false ] = false; -- This. } San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jokeℝ1472771893 Posted June 30, 2012 Author Posted June 30, 2012 We cannot help you if you don't even test your script.What is this? local aAllowedGroups = { [ 'Armed Forces' ] = true; [ false ] = false; -- This. } i test it but nothing
Kenix Posted June 30, 2012 Posted June 30, 2012 Show meta.xml http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Jokeℝ1472771893 Posted June 30, 2012 Author Posted June 30, 2012 (edited) "Joker" name = "Armed Force" type = "script" /> Edited October 5, 2013 by Guest
Kenix Posted June 30, 2012 Posted June 30, 2012 Did you set data to the player? http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Jokeℝ1472771893 Posted June 30, 2012 Author Posted June 30, 2012 getElementType( pElement ) == 'player' and aAllowedGroups[ getElementData ( pElement, 'Armed Forces' ) ]
Kenix Posted June 30, 2012 Posted June 30, 2012 I mean setElementData http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
TAPL Posted June 30, 2012 Posted June 30, 2012 (edited) if eventName == 'onColShapeHit' then eventName is not defined. you can use isElementWithinColShape https://wiki.multitheftauto.com/wiki/IsE ... inColShape Edited June 30, 2012 by Guest
Kenix Posted June 30, 2012 Posted June 30, 2012 if eventName == 'onColShapeHit' then eventName is not defined. Did you read my topic about predefined variables? http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
TAPL Posted June 30, 2012 Posted June 30, 2012 if eventName == 'onColShapeHit' then eventName is not defined. Did you read my topic about predefined variables? nvm, i've notice that he put mess arguments at moveObject. @Jokeℝ, check the wiki https://wiki.multitheftauto.com/wiki/MoveObject
Jokeℝ1472771893 Posted June 30, 2012 Author Posted June 30, 2012 ok thnx and read please viewtopic.php?f=91&t=44818
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