berry172 Posted August 24, 2012 Posted August 24, 2012 what must i do,that nobady can kill with knife peds because with knife can they kill it?
Castillo Posted August 24, 2012 Posted August 24, 2012 There is: onClientPlayerStealthKill but not for peds. I'm not sure if there's another way. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jaysds1 Posted August 24, 2012 Posted August 24, 2012 or you could disable the player from hitting anyone if they have a knife. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
sockz Posted August 25, 2012 Posted August 25, 2012 function cancelpedkills(vPed) if getElementType ( vPed ) == "ped" then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, cancelpedkills)
TAPL Posted August 25, 2012 Posted August 25, 2012 function cancelpedkills(vPed) if getElementType ( vPed ) == "ped" then cancelEvent() end end addEventHandler("onClientPlayerStealthKill", localPlayer, cancelpedkills) can't you read? onClientPlayerStealthKill
sockz Posted August 25, 2012 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.
ernst Posted August 25, 2012 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.
TAPL Posted August 25, 2012 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.
Jaysds1 Posted August 25, 2012 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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