Hello! (:
Im new too this srcds area.
Can somone please tell me how do i use this code?
Code:
#include <sourcemod>
#include <smlib>
#define PLUGIN_VERSION "1.0"
#pragma semicolon 1
public Plugin:myinfo =
{
name = "[ANY] Slay after joining a team",
author = "Headline",
description = "Slays the when a client chooses a team.",
version = PLUGIN_VERSION,
url = "http://www.michaelwflaherty.com"
};
public OnPluginStart()
{
AddCommandListener(Command_JoinTeam, "jointeam"); // Hook Join Team
}
public Action:Command_JoinTeam(client, const String:command[], argc)
{
CreateTimer(0.2, Timer_Slay, client, TIMER_FLAG_NO_MAPCHANGE);
}
public Action:Timer_Slay(Handle:hTimer, any:client)
{
ForcePlayerSuicide(client);
}
Can somone make an working SMX or SP of it?
So i can use it on my server on CS:GO.
Thanks!