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

New Function - It would work - But I have probs…


Soljah
 Share

Recommended Posts

I've been trying to make a new function that retrieves and sends the amount of Players the player has killed. So far I was thinking this…

It would send the Variable, and read the variable, from the Playername.ini, in a Head 'PVP' and Variable, 'Pkilled'.

```
Function GetPK(ByVal index As Long) As Long
    GetPK = Player(index).Char(Player(index).CharNum).Pkilled
End Function

Sub SetPK(ByVal index As Long, ByVal Pkilled As Long)
    Player(index).Char(Player(index).CharNum).Pkilled = Pkilled
End Sub
```
Having that, I'd be able to use the function such as'

Call SetPK(index, 5)
_This would make the player have killed 5 people_

If GetPK > 5 Then
Do This
_This would run a line of code if the amount of players killed is above 5.._

* * *

But, I was planning on having a custom menu show client side, but with this code on server side I'm not 100% sure on how to load code from server, through the client.

Help would be greatly appreciated.
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...