Perfect Posted April 7, 2012 Posted April 7, 2012 Hi all i make godmode resource and scripting working fine but players can kill with knife ? Multi Theft Auto Player since middle of 2011. Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.
X-SHADOW Posted April 7, 2012 Posted April 7, 2012 ClientSide--- function stop ( attacker, weapon, bodypart ) if ( weapon == 4 ) then cancelEvent() outputChatBox('You Can,t Kill With Knife',source,255,255,0) end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stop ) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Kenix Posted April 7, 2012 Posted April 7, 2012 addEventHandler ( 'onClientPlayerDamage', localPlayer, function( _, nWeapon ) if nWeapon == 4 then cancelEvent( ) end end ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
arezu Posted April 7, 2012 Posted April 7, 2012 addEventHandler ( 'onClientPlayerDamage', localPlayer, function( _, nWeapon ) if nWeapon == 4 then cancelEvent( ) end end ) The guy above you posted the same thing...
Kenix Posted April 7, 2012 Posted April 7, 2012 No It's incorrect outputChatBox('You Can,t Kill With Knife',source,255,255,0) Because arguments is bool outputChatBox ( string text [, int r=255, int g=255, int b=255, bool colorCoded=false ] ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Perfect Posted April 7, 2012 Author Posted April 7, 2012 thnx guy's for help me Multi Theft Auto Player since middle of 2011. Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.
Kenix Posted April 7, 2012 Posted April 7, 2012 No problem. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Castillo Posted April 7, 2012 Posted April 7, 2012 You may also want to disable the stealth kills with the Knife, you can cancel the event onClientPlayerStealthKill if the weapon is the Knife. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Perfect Posted April 9, 2012 Author Posted April 9, 2012 ok Multi Theft Auto Player since middle of 2011. Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.
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