Jump to content

script prob


Perfect

Recommended Posts

Posted

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.

Posted

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%

Posted
addEventHandler ( 'onClientPlayerDamage', localPlayer, 
    function( _, nWeapon ) 
        if nWeapon == 4 then 
            cancelEvent( ) 
        end 
    end 
)    

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted
addEventHandler ( 'onClientPlayerDamage', localPlayer, 
    function( _, nWeapon ) 
        if nWeapon == 4 then 
            cancelEvent( ) 
        end 
    end 
)    

The guy above you posted the same thing...

Posted

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.

Posted

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.

Posted

ok :D

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

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