MetaGamer Posted January 18, 2011 Posted January 18, 2011 I will I make a system that when a player kill anyone he will get $40
DakiLLa Posted January 18, 2011 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
MetaGamer Posted January 18, 2011 Author 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
Kenix Posted January 18, 2011 Posted January 18, 2011 you wanted? addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 1000 ); end )
Castillo Posted January 18, 2011 Posted January 18, 2011 volk-rus, he asked when killing a PLAYER not a ZOMBIE.
MetaGamer Posted January 18, 2011 Author Posted January 18, 2011 I am asking for this gamemode viewtopic.php?f=108&t=28446 Please please please help me
Castillo Posted January 18, 2011 Posted January 18, 2011 oh, you was asking for when kill a player not a zombie o_o, use volk-rus code then.
MetaGamer Posted January 18, 2011 Author Posted January 18, 2011 not work. That's why I am repeating Edit : Where will i put the code?
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