Sorry i have no clue on TF2.. this is blind reply..
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <tf2>
new const String:CapType[5][32] =
{
"team_control_point_master",
"team_control_point",
"trigger_capture_area",
"item_teamflag",
"func_capturezone"
}
public Plugin:myinfo =
{
name = "Anti Point Capture",
author = "XeroX",
description = "",
version = "1.0",
url = "www.sourcemod.net"
}
public OnPluginStart()
{
HookAllClient()
}
public OnClientPutInServer( client )
{
if( client > 0 )
SDKHook( client , SDKHook_StartTouch, OnStartTouch )
}
public Action:OnStartTouch( client, entity )
{
new bool:Touched = false
if( client > 0 && IsClientInGame( client ) && IsValidEntity( entity ))
{
decl String:OutputName[32];
GetEntityClassname( entity, OutputName, sizeof( OutputName ))
for( new i=0; i<sizeof( CapType ); i++ )
{
if( StrEqual( OutputName, CapType[i] ))
{
TF2_IgnitePlayer(client,client)
PrintToChatAll( "%N was ignited", client )
Touched = true
break
}
}
}
if( Touched ) return Plugin_Handled
return Plugin_Continue
}
HookAllClient()
{
for( new i=MaxClients; i>0; i-- )
{
if( IsClientConnected( i ) && IsClientInGame( i ))
{
SDKHook( i , SDKHook_StartTouch, OnStartTouch )
}
}
}
EDIT: I m thinking.. if you stand still there and ain't move, there is a chance you double ignited, triple and so on.. anyway, i cant help it, no clue at all.
__________________