![]()
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
#pragma semicolon 1
#include <sourcemod>
#define PL_VERSION "0.3.8"
new Handle:g_IsEnabled = INVALID_HANDLE;
public Plugin:myinfo =
{
name = "disable_kill",
author = "Doktor",
description = "Disable the Kill and explode command for TF2.",
version = PL_VERSION,
url = "http://iron.site.nfoservers.com/sourcemod_plugins/disable_kill.zip"
};
public OnPluginStart()
{
AddCommandListener(cmd_kill, "kill");
AddCommandListener(cmd_explode, "explode");
g_IsEnabled = CreateConVar("disable_kill_enabled", "1", "Is this mod enabled?", FCVAR_NOTIFY|FCVAR_PLUGIN);
}
public Action:cmd_kill(client, const String:command[], args)
{
if(!g_IsEnabled)
{
return Plugin_Continue;
}
if(GetUserAdmin(client) == INVALID_ADMIN_ID)
{
CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
return Plugin_Stop;
}
else
{
return Plugin_Continue;
}
}
public Action:cmd_explode(client, const String:command[], args)
{
if(!g_IsEnabled)
{
return Plugin_Continue;
}
if(GetUserAdmin(client) == INVALID_ADMIN_ID)
{
CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
return Plugin_Stop;
}
else
{
return Plugin_Continue;
}
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
#pragma semicolon 1
#include <sourcemod>
#define PL_VERSION "0.3.8"
new Handle:g_IsEnabled = INVALID_HANDLE;
public Plugin:myinfo =
{
name = "disable_kill",
author = "Doktor",
description = "Disable the Kill and explode command for TF2.",
version = PL_VERSION,
url = "http://iron.site.nfoservers.com/sourcemod_plugins/disable_kill.zip"
};
public OnPluginStart()
{
AddCommandListener(cmd_kill, "kill");
AddCommandListener(cmd_explode, "explode");
g_IsEnabled = CreateConVar("disable_kill_enabled", "1", "Is this mod enabled?", FCVAR_NOTIFY|FCVAR_PLUGIN);
}
public Action:cmd_kill(client, const String:command[], args)
{
if(!g_IsEnabled)
{
return Plugin_Continue;
}
if(GetUserAdmin(client) == INVALID_ADMIN_ID && GetClientTeam(client) == 3)
{
CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
return Plugin_Stop;
}
else
{
return Plugin_Continue;
}
}
public Action:cmd_explode(client, const String:command[], args)
{
if(!g_IsEnabled)
{
return Plugin_Continue;
}
if(GetUserAdmin(client) == INVALID_ADMIN_ID && GetClientTeam(client) == 3)
{
CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
return Plugin_Stop;
}
else
{
return Plugin_Continue;
}
}
|
This post has been edited 1 times, last edit by "Newbie'" (Dec 11th 2013, 7:34pm)