Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

10 pvp kills?


zach4873
 Share

Recommended Posts

> Call GetPlayerPk(index)     
>     If GetPlayerPK = > 10
>     Call GlobalMsg(GetPlayerName"has killed 10 people in pvp !" , 10

its supposed to send that message in bright green after the person kills 10 people in pvp

okay a few questions

1) 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

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 If
Call 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

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
 Share

×
×
  • Create New...