MetaGamer Posted January 18, 2011 Share Posted January 18, 2011 I will I make a system that when a player kill anyone he will get $40 Link to comment
DakiLLa Posted January 18, 2011 Share Posted January 18, 2011 May be you could try something by yourself and show us what you got? Things that you will need are: onPlayerWasted event givePlayerMoney function Link to comment
MetaGamer Posted January 18, 2011 Author Share Posted January 18, 2011 function OnKill ( ammo, killer, killerweapon, bodypart ) if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, 1000 ) end end addEventHandler ( "onPlayerWasted", getRootElement(), OnKill ) I tried this but not work Link to comment
proracer Posted January 18, 2011 Share Posted January 18, 2011 It should work.What errors it gives? Link to comment
Kenix Posted January 18, 2011 Share Posted January 18, 2011 you wanted? addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 1000 ); end ) Link to comment
Castillo Posted January 18, 2011 Share Posted January 18, 2011 volk-rus, he asked when killing a PLAYER not a ZOMBIE. Link to comment
MetaGamer Posted January 18, 2011 Author Share Posted January 18, 2011 I am asking for this gamemode viewtopic.php?f=108&t=28446 Please please please help me Link to comment
Castillo Posted January 18, 2011 Share Posted January 18, 2011 oh, you was asking for when kill a player not a zombie o_o, use volk-rus code then. Link to comment
MetaGamer Posted January 18, 2011 Author Share Posted January 18, 2011 not work. That's why I am repeating Edit : Where will i put the code? Link to comment
Castillo Posted January 18, 2011 Share Posted January 18, 2011 check your PM box, i sent you the code. Link to comment
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