Jump to content

This script will work?


GamerDeMTA

Recommended Posts

Posted
local damage = setWeaponProperty(0, "poor", "damage", 14) 
local damage = setWeaponProperty(0, "std", "damage", 14) 
local damage = setWeaponProperty(0, "pro", "damage", 14) 
end 

Is for do FIST more damage.

I PUT IT AS CLIENT OR SERVER?

Posted

Don't works :S Can someone say me If the BRASS KNUCKLES [2] will work? and also give me a script for give weapons to players when they join the servers and spawn, I want to give him BRASS KNUCKLES when they Join / Respawn

Posted

You can modify the broph.lua file [ if you were using the play gamemode ] To give weapons to players when they join the servers and spawn / respawn ...

And i don't know about brass knuckles, But you can try ..

Posted

That depends on what gamemode your using, Open the file off it, and add this code :

addEventHandler ( 'onPlayerSpawn', root, 
    function ( ) 
        giveWeapon ( source, 1 ) 
    end 
) 
  
  
addEventHandler ( 'onPlayerJoin', root, 
    function ( ) 
        giveWeapon ( source, 1 ) 
    end 
) 

Posted

hey I've a problem with this, I want to put a fighting style to the players when they join but sometimes there is the fights tyle and sometimes no.

addEventHandler ( 'onPlayerJoin', root, 
    function ( ) 
        setPedFightingStyle ( source, 6 ) 
    end 
) 

Also that script for change damage doesn't work with BRASS KNUCKLES

local damage = setWeaponProperty(1, "poor", "damage", 14) 
local damage = setWeaponProperty(1, "std", "damage", 14) 
local damage = setWeaponProperty(1, "pro", "damage", 14) 
end 

Posted

@manve: That doesn't make any difference.

@GamerDeMTA: setWeaponProperty only works with weapons that can actually fire ( I'm not 100% sure about this ).

You also have an useless 'end' there.

About the fighting style, you may want to use "onPlayerSpawn" instead of "onPlayerJoin".

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