zach4873 Posted February 17, 2009 Author Share Posted February 17, 2009 > Call GetPlayerPk(index) > If GetPlayerPK = > 10> Call GlobalMsg(GetPlayerName"has killed 10 people in pvp !" , 10its supposed to send that message in bright green after the person kills 10 people in pvpokay a few questions1) would this work ?2) does GetPlayerPk count only the kills of that life or if he dies does it keep adding up ? Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 17, 2009 Share Posted February 17, 2009 Change this weak and obvously boring code ;o```Sub OnPVPDeath(Attacker, Victim) Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & GetPlayerName(Attacker), BRIGHTRED)End Sub```To this :D```Sub OnPVPDeath(Attacker, Victim) If GetPlayerPK(Attacker) > 9 Then Call GlobalMsg(GetPlayerName(Attacker) & " has just slain 10 players! Exit Sub End IfCall SetPlayerPK(Victim, 0)End Sub```Now what this does is calls the message at 10, you can add more if you have a high score system or such, and if you die, your kill count goes down to 0 so you are no longer evil looking if slain Link to comment Share on other sites More sharing options...
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