View Single Post
Author Message
DaN1kyM
Junior Member
Join Date: Apr 2012
Location: Russia =)
Old 04-06-2012 , 07:09   [L4D(2)] Pls help me crate plagin
Reply With Quote #1

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 
18<= maxplayersi++)
    {
        if (
IsPlayerAlive(i))
        {
          (
GetClientTeam(i) == 1)
           return;
        }
    }

DaN1kyM is offline