Nico.de Posted August 2, 2011 Share Posted August 2, 2011 I want to create a fakedeath.. with setpedAnimation and addcommandHandler Link to comment
Nico.de Posted August 2, 2011 Author Share Posted August 2, 2011 Can u tell me how it lookz I want to make .. that when a player press x he has the death anim.. Link to comment
Castillo Posted August 2, 2011 Share Posted August 2, 2011 addEventHandler("onPlayerJoin",root,function () bindKey(source,"X","down",fakeDeath) end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"X","down",fakeDeath) end end) function fakeDeath(player) setPedAnimation(player,"WUZI","CS_Dead_Guy") end The animation is incorrect, you'll have to search for a good one. 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