Jump to content

Help,Please


Recommended Posts

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

Link to comment
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

Link to comment

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 
  

Link to comment

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 

Link to comment
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

Link to comment
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

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...