GamerDeMTA Posted March 16, 2013 Posted March 16, 2013 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?
Castillo Posted March 16, 2013 Posted March 16, 2013 You can't set properties for the fist, as far as I know.
GamerDeMTA Posted March 16, 2013 Author Posted March 16, 2013 Don't works 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
PaiN^ Posted March 16, 2013 Posted March 16, 2013 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 ..
GamerDeMTA Posted March 16, 2013 Author Posted March 16, 2013 and If I'm not using play how to give weapons to the players when they join and respawn?
PaiN^ Posted March 16, 2013 Posted March 16, 2013 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 )
Tete omar Posted March 16, 2013 Posted March 16, 2013 You can't set properties for the fist, as far as I know. If you were right, then he can make a custom fist damage script.
GamerDeMTA Posted March 16, 2013 Author Posted March 16, 2013 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
Castillo Posted March 16, 2013 Posted March 16, 2013 @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".
GamerDeMTA Posted March 16, 2013 Author Posted March 16, 2013 Thanks It works! Ah, you know how to give someone a weapon when he hit a life pickup?
Castillo Posted March 16, 2013 Posted March 16, 2013 Replacing pickups is not stable as far as I know, but you can do it the same way as you replace skins/objects/etc.
GamerDeMTA Posted March 17, 2013 Author Posted March 17, 2013 and markers replacing is stable? can say me stable things to replace textures? My idea is to put my texture and when u hit that u get a weapon
Castillo Posted March 17, 2013 Posted March 17, 2013 I don't know how would you replace markers, maybe with shaders, but I'm not sure.
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