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

[FIX] GetPlayerClass


Riiicardoo
 Share

Recommended Posts

Well guys, this tutorial teaches you how to fix the bug that is in 2.0 and it was not sent the correct class id of the client, perhaps forgetting the robin or have found it unnecessary, and

Open the Server

Look for:

```
Function PlayerData(ByVal Index As Long) As Byte()
```
After:

```
Buffer.WriteLong GetPlayerPK(Index)
```
Place:

```
Buffer.WriteLong GetPlayerClass(Index)
```
Open Client

Look for:

```
Private Sub HandlePlayerData(ByVal
```
After:

```
Call SetPlayerPK(i, Buffer.ReadLong)
```
Place:

```
Call SetPlayerClass(i, Buffer.ReadLong)
```
Now you can show the class name of the character in the status of the client using the code:

```
Class (GetPlayerClass (MyIndex). Name
```
credits:
Marlos Range (Why Create and Provide)
Link to comment
Share on other sites

  • 2 months later...

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...