LiOneLMeSsIShoT Posted August 17, 2013 Posted August 17, 2013 The Animation don't stop in this script when i click Spacebar..Please help function KissCommand ( theplayer ) if not ( isPedDead(theplayer) ) then setElementFrozen (theplayer, true) setPedAnimation (theplayer, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( theplayer ) setElementFrozen (theplayer, false) setPedAnimation ( theplayer ) end for _,player in ipairs(getElementsByType("player")) do bindKey(player, "space", "down", StopCommand) end And THANKS
LiOneLMeSsIShoT Posted August 18, 2013 Author Posted August 18, 2013 The Animation don't stop in this script when i click Spacebar..Please help function KissCommand ( theplayer ) if not ( isPedDead(theplayer) ) then setElementFrozen (theplayer, true) setPedAnimation (theplayer, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( theplayer ) setElementFrozen (theplayer, false) setPedAnimation ( theplayer ) end for _,player in ipairs(getElementsByType("player")) do bindKey(player, "space", "down", StopCommand) end And THANKS LOOOONG time without any answer ...Help Please
OGF Posted August 18, 2013 Posted August 18, 2013 Someone already wrote a script for you on how to stop animations with spacebar. Use it and learn from it.
LiOneLMeSsIShoT Posted August 18, 2013 Author Posted August 18, 2013 Someone already wrote a script for you on how to stop animations with spacebar. Use it and learn from it. Where?
OGF Posted August 18, 2013 Posted August 18, 2013 viewtopic.php?f=91&t=63269&p=601460#p601460 bindKey unbindKey
LiOneLMeSsIShoT Posted August 18, 2013 Author Posted August 18, 2013 https://forum.multitheftauto.com/viewtopic.php?f=91&t=63269&p=601460#p601460 bindKey unbindKey Still not work..look function KissCommand ( source ) if not ( isPedDead(source) ) then setElementFrozen (source, true) setPedAnimation (source, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) bindKey ( "space", "down", StopCommand) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( source ) setElementFrozen (source, false) setPedAnimation ( source ) unbindKey ( "space", "down", StopCommand) end
Vision Posted August 18, 2013 Posted August 18, 2013 Try this function KissCommand ( source ) if not ( isPedDead(source) ) then setElementFrozen (source, true) setPedAnimation (source, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) bindKey ( source, "space", "down", StopCommand) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( source ) setElementFrozen (source, false) setPedAnimation ( source ) unbindKey ( source, "space", "down", StopCommand) end
LiOneLMeSsIShoT Posted August 18, 2013 Author Posted August 18, 2013 Try this function KissCommand ( source ) if not ( isPedDead(source) ) then setElementFrozen (source, true) setPedAnimation (source, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) bindKey ( source, "space", "down", StopCommand) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( source ) setElementFrozen (source, false) setPedAnimation ( source ) unbindKey ( source, "space", "down", StopCommand) end Works good and nice ... but how to make when someone type /kiss he do it /kiss ( playername or id )--I got ID system and the another player must accept it by /acc..and if he accept they stop face over face with 2 anims and start the animation. Thanks
LiOneLMeSsIShoT Posted August 18, 2013 Author Posted August 18, 2013 Try this function KissCommand ( source ) if not ( isPedDead(source) ) then setElementFrozen (source, true) setPedAnimation (source, "KISSING", "Grlfrd_Kiss_03", -1, true, false, false ) outputChatBox ( "To stop the Kiss Click Spacebar", source, 233, 233, 233 ) bindKey ( source, "space", "down", StopCommand) end end addCommandHandler ("kiss", KissCommand) function StopCommand ( source ) setElementFrozen (source, false) setPedAnimation ( source ) unbindKey ( source, "space", "down", StopCommand) end Works good and nice ... but how to make when someone type /kiss he do it /kiss ( playername or id )--I got ID system and the another player must accept it by /acc..and if he accept they stop face over face with 2 anims and start the animation. Thanks Answer Please
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