Pls help me crate plagin for me i'm Rus and i bad spoke english and i bad scripter))
I needed how player's WIN company who Alive getting him Spectate team and immediately changed the company to the next
I think this plagin should look something like this:
thanks in advance ! =)
PHP Code:
#include <sourcemod>
#include <sdktools>
#define PLUGIN_VERSION "0.0"
public Plugin:myinfo =
{
name = "",
author = "",
description = "",
version = PLUGIN_VERSION,
url = ""
}
public OnPlaginStart()
{
HookEvent("finale_win", Event_finale_win)
}
public Action:Event_finale_win(Handle:event, const String:name[], bool:dontBroadcast)
{
new maxplayers = GetMaxClients();
for (new i = 18; i <= maxplayers; i++)
{
if (IsPlayerAlive(i))
{
(GetClientTeam(i) == 1)
return;
}
}
}