diff --git a/ext/sourcepawn-client/Facti13BackendIntegration.sp b/ext/sourcepawn-client/Facti13BackendIntegration.sp index b5ce727..36e2f9d 100644 --- a/ext/sourcepawn-client/Facti13BackendIntegration.sp +++ b/ext/sourcepawn-client/Facti13BackendIntegration.sp @@ -1,5 +1,7 @@ #include #include +#include +#include #define PLUGIN_VERSION "1.0" @@ -142,6 +144,10 @@ stock JSONObject createPayload() { player.SetFloat("pos_x", pos[0]); player.SetFloat("pos_y", pos[1]); player.SetFloat("pos_z", pos[2]); + /* Player class */ + player.SetInt("clz", TF2_GetPlayerClass(client)); + /* Player team */ + player.SetInt("team", TF2_GetClientTeam(client)); /* push */ players.Push(player); } diff --git a/src/main/java/app/entities/server/request/PlayerOnServer.java b/src/main/java/app/entities/server/request/PlayerOnServer.java index 5b1dc27..eb725c3 100644 --- a/src/main/java/app/entities/server/request/PlayerOnServer.java +++ b/src/main/java/app/entities/server/request/PlayerOnServer.java @@ -19,4 +19,6 @@ public class PlayerOnServer extends RCONPlayer { public float[] getPos() { return new float[]{pos_x, pos_y, pos_z}; } + public int clz = 0; + public int team = 0; } \ No newline at end of file