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

You can't set properties for the fist, as far as I know.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

If it could work, Then it well be server sided ..!

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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 
) 

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

Yes, he can do that.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Replacing pickups is not stable as far as I know, but you can do it the same way as you replace skins/objects/etc.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I don't know how would you replace markers, maybe with shaders, but I'm not sure.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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