sarysa already gave you the fix. I will give you a break down, since you are new to coding.
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <tf2_stocks>
#include <morecolors>
#include <freak_fortress_2>
#include <freak_fortress_2_subplugin>
#define ME 2048
public Plugin:myinfo = {
name = "",
author = "",
};
public OnPluginStart2()
{
HookEvent("arena_round_start", Event_RoundStart, EventHookMode_PostNoCopy);
}
/*
//Uncomment it, if you want to use check players' Team
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
if(!strcmp(ability_name, "start_goldpan"))
ServerCommand("sm_givew @blue 9001");
else if(!strcmp(ability_name, "start_cop_stick"))
ServerCommand("sm_givew @blue 9992");
else if(!strcmp(ability_name, "start_HL2_shotgun"))
ServerCommand("sm_givew @blue 9993");
return Plugin_Continue;
}
public Action:Timer_GetBossTeam(Handle:hTimer)
{
BossTeam=FF2_GetBossTeam();
return Plugin_Continue;
}
*/
public Action:FF2_OnAbility2(index,const String:plugin_name[],const String:ability_name[],action)
{
new slot=FF2_GetAbilityArgument(index,this_plugin _name,ability_name,0);
/*
// Uncomment it if you want use this rage as "true rage"m like Saxton's stun
if (!slot)
{
if (index == 0) //Starts VSH rage ability forward
{
new Action:act = Plugin_Continue;
Call_StartForward(OnHaleRage);
new Float:dist=FF2_GetRageDist(index,this_plugin_ name,ability_name);
new Float:newdist=dist;
Call_PushFloatRef(newdist);
Call_Finish(act);
if (act != Plugin_Continue && act != Plugin_Changed)
return Plugin_Continue;
if (act == Plugin_Changed) dist = newdist;
}
}
*/
if(!strcmp(ability_name, "rage_goldpan"))
ServerCommand("sm_givew @blue 9001");
else if(!strcmp(ability_name, "rage_cop_stick"))
ServerCommand("sm_givew @blue 9992");
else if(!strcmp(ability_name, "rage_HL2_shotgun"))
ServerCommand("sm_givew @blue 9993");
return Plugin_Stop;
}
Look at this part of the above code.
PHP Code:
/*
//Uncomment it, if you want to use check players' Team
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
if(!strcmp(ability_name, "start_goldpan"))
ServerCommand("sm_givew @blue 9001");
else if(!strcmp(ability_name, "start_cop_stick"))
ServerCommand("sm_givew @blue 9992");
else if(!strcmp(ability_name, "start_HL2_shotgun"))
ServerCommand("sm_givew @blue 9993");
return Plugin_Continue;
}
public Action:Timer_GetBossTeam(Handle:hTimer)
{
BossTeam=FF2_GetBossTeam();
return Plugin_Continue;
}
*/
Notice how it starts with
/* and ends with
*/. This indicated that all the lines in between are a comment. You simple need to remove the
/* and */ symbols from code to make it executable.
Your whole code will look like this now.
PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <tf2_stocks>
#include <morecolors>
#include <freak_fortress_2>
#include <freak_fortress_2_subplugin>
#define ME 2048
public Plugin:myinfo = {
name = "",
author = "",
};
public OnPluginStart2()
{
HookEvent("arena_round_start", Event_RoundStart, EventHookMode_PostNoCopy);
}
//Uncomment it, if you want to use check players' Team
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
if(!strcmp(ability_name, "start_goldpan"))
ServerCommand("sm_givew @blue 9001");
else if(!strcmp(ability_name, "start_cop_stick"))
ServerCommand("sm_givew @blue 9992");
else if(!strcmp(ability_name, "start_HL2_shotgun"))
ServerCommand("sm_givew @blue 9993");
return Plugin_Continue;
}
public Action:Timer_GetBossTeam(Handle:hTimer)
{
BossTeam=FF2_GetBossTeam();
return Plugin_Continue;
}
public Action:FF2_OnAbility2(index,const String:plugin_name[],const String:ability_name[],action)
{
new slot=FF2_GetAbilityArgument(index,this_plugin _name,ability_name,0);
/*
// Uncomment it if you want use this rage as "true rage"m like Saxton's stun
if (!slot)
{
if (index == 0) //Starts VSH rage ability forward
{
new Action:act = Plugin_Continue;
Call_StartForward(OnHaleRage);
new Float:dist=FF2_GetRageDist(index,this_plugin_ name,ability_name);
new Float:newdist=dist;
Call_PushFloatRef(newdist);
Call_Finish(act);
if (act != Plugin_Continue && act != Plugin_Changed)
return Plugin_Continue;
if (act == Plugin_Changed) dist = newdist;
}
}
*/
if(!strcmp(ability_name, "rage_goldpan"))
ServerCommand("sm_givew @blue 9001");
else if(!strcmp(ability_name, "rage_cop_stick"))
ServerCommand("sm_givew @blue 9992");
else if(!strcmp(ability_name, "rage_HL2_shotgun"))
ServerCommand("sm_givew @blue 9993");
return Plugin_Stop;
}