Namorek Posted July 28, 2010 Share Posted July 28, 2010 Hi all, How it work Attach Player to Player? Player write /Arrest [Nick] a Player has arrest by Player and Player on arrest the player anim Link to comment
Namorek Posted July 28, 2010 Author Share Posted July 28, 2010 Eee!, And release arrest by Player write it /releasearrest, Please Help me Link to comment
Dark Dragon Posted July 29, 2010 Share Posted July 29, 2010 are you sure attaching is the thing you want? the use sounds more like you want to freeze the player. Link to comment
Namorek Posted July 29, 2010 Author Share Posted July 29, 2010 No freeze, Please AttachElement Example Arrest: http://img34.imageshack.us/img34/3586/32189269.jpg My code look you but my code doesn't work and i not can how add unarrest?detachElemnt? function attach ( thePlayer, command, who ) local arrest = getPlayerFromName ( who ) attachElements ( arrest, thePlayer, 0, 2, 0 ) end addCommandHandler ( "arrest", attach ) Link to comment
dzek (varez) Posted July 29, 2010 Share Posted July 29, 2010 haha, epic drawing im not sure if its possible to attach player to player, your code looks ok, does it throw any error/warning? are you sure you put it server side? yes, detachElements will be ok Link to comment
Namorek Posted July 29, 2010 Author Share Posted July 29, 2010 varez? Sorry you because wast quarrel Very sorry you! Doesn't work my Code! function attach ( thePlayer, command, who ) local arrest = getPlayerFromName ( who ) attachElements ( arrest, thePlayer, 0, 2, 0 ) end addCommandHandler ( "arrest", attach ) function dettach ( thePlayer, command, who ) local unarrest = getPlayerFromName ( who ) detachElements ( unarrest, thePlayer, 0, 2, 0 ) end addCommandHandler ( "unarrest", dettach ) Help me! Link to comment
Discord Moderators Zango Posted July 29, 2010 Discord Moderators Share Posted July 29, 2010 How about this: function attach ( thePlayer, command, who ) local arrest = getPlayerFromName ( who ) attachElements ( arrest, thePlayer, 0, 2, 0 ) end addCommandHandler ( "arrest", attach ) function dettach ( thePlayer, command, who ) local unarrest = getPlayerFromName ( who ) detachElements ( unarrest, thePlayer ) end addCommandHandler ( "unarrest", dettach ) detachElements hasn't got code for additional coordinates - You should have read the function on wiki. detachElements ( element theElement, [ element theAttachToElement ] ) -- no coordinate arguments Link to comment
Namorek Posted July 30, 2010 Author Share Posted July 30, 2010 How about this: function attach ( thePlayer, command, who ) local arrest = getPlayerFromName ( who ) attachElements ( arrest, thePlayer, 0, 2, 0 ) end addCommandHandler ( "arrest", attach ) function dettach ( thePlayer, command, who ) local unarrest = getPlayerFromName ( who ) detachElements ( unarrest, thePlayer ) end addCommandHandler ( "unarrest", dettach ) detachElements hasn't got code for additional coordinates - You should have read the function on wiki. detachElements ( element theElement, [ element theAttachToElement ] ) -- no coordinate arguments Where to Enter Animation?? 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