berry172 Posted August 24, 2012 Share Posted August 24, 2012 what must i do,that nobady can kill with knife peds because with knife can they kill it? Link to comment
Castillo Posted August 24, 2012 Share Posted August 24, 2012 There is: onClientPlayerStealthKill but not for peds. I'm not sure if there's another way. Link to comment
Jaysds1 Posted August 24, 2012 Share Posted August 24, 2012 or you could disable the player from hitting anyone if they have a knife. Link to comment
sockz Posted August 25, 2012 Share Posted August 25, 2012 function cancelpedkills(vPed) if getElementType ( vPed ) == "ped" then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, cancelpedkills) Link to comment
TAPL Posted August 25, 2012 Share Posted August 25, 2012 function cancelpedkills(vPed) if getElementType ( vPed ) == "ped" then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, cancelpedkills) can't you read? onClientPlayerStealthKill Link to comment
sockz Posted August 25, 2012 Share Posted August 25, 2012 can't you? https://wiki.multitheftauto.com/wiki/OnC ... tealthKill The staff's attitude towards me is incredible hostile, it sickens me. Link to comment
ernst Posted August 25, 2012 Share Posted August 25, 2012 function cancelpedkills(vPed) if getElementType ( vPed ) == "ped" then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, cancelpedkills) can't you read? onClientPlayerStealthKill targetPlayer: The player or ped that is being stealth killed. Link to comment
TAPL Posted August 25, 2012 Share Posted August 25, 2012 onClientPlayerStealthKill This event is triggered when a player stealth kills another player. targetPlayer: The player or ped that is being stealth killed. lol, the wiki confused me. Link to comment
Jaysds1 Posted August 25, 2012 Share Posted August 25, 2012 same, but now i get it, sockz is right, if the localPlayer is attacking another which is a ped, he could cancel it. 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