It looks like you're new here. If you want to get involved, click one of these buttons!
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
new Zones[3][1];
new TeamChests[3];
public Plugin:myinfo =
{
name = "PVK Wars",
author = "Unknown",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}
public OnPluginStart(){
HookEvent("chest_capture", OnCapture)
PrintToServer("PVK Wars Loaded");
}
public Action:OnCapture(Handle:event, String:name[], bool:dontBroadcast){
new client = GetEventInt(event, "userid");
/* if(IsClientInGame(client) && !IsFakeClient(client) && IsClientConnected(client)){
PrintToChatAll("Client: %i", client);
if(GetClientTeam(client) == 4){
TeamChests[2] = TeamChests[2] +1;
PrintToChatAll("Team Chest Count: %i", TeamChests[2]);
}
}*/
if(IsClientInGame(client)){
TeamChests[2] = TeamChests[2] +1;
PrintToChatAll("Team Chest Count: %i, Team: %i", TeamChests[2], GetClientTeam(client));
}
}
if(IsClientInGame(client)){
}
Comments
If you need the client id, you need this line in your event:
Author of PVKII Randomizer
Author of PVKII WeaponsMaster