251cced1f8
Various minor things done to project files Updated sample extension project file and updated makefile to the new unified version (more changes likely on the way) Updated regex project file and makefile --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401971
56 lines
913 B
SourcePawn
56 lines
913 B
SourcePawn
#include <sourcemod>
|
|
#include "tf2.inc"
|
|
|
|
public Plugin:myinfo =
|
|
{
|
|
name = "TF2 Test",
|
|
author = "pRED*",
|
|
description = "Test of Tf2 functions",
|
|
version = "1.0",
|
|
url = "www.sourcemod.net"
|
|
}
|
|
|
|
public OnPluginStart()
|
|
{
|
|
RegConsoleCmd("sm_burnme", Command_Burn);
|
|
RegConsoleCmd("sm_invuln", Command_Invuln);
|
|
}
|
|
|
|
public Action:Command_Burn(client, args)
|
|
{
|
|
if (client == 0)
|
|
{
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
TF2_Burn(client);
|
|
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
public Action:Command_Invuln(client, args)
|
|
{
|
|
if (client == 0)
|
|
{
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
if (args < 2)
|
|
{
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
decl String:text[10];
|
|
decl String:text2[10];
|
|
GetCmdArg(1, text, sizeof(text));
|
|
GetCmdArg(2, text2, sizeof(text2));
|
|
|
|
new bool:one = !!StringToInt(text);
|
|
new bool:two = !!StringToInt(text2);
|
|
|
|
TF2_Invuln(client, one, two)
|
|
|
|
return Plugin_Continue;
|
|
}
|
|
|