Jump to content

This script will work?


GamerDeMTA

Recommended Posts

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 
) 

Link to comment

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 

Link to comment

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

Link to comment

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