Quote:
Originally Posted by FzR
yes if a player from T or CT write /ff they spaming chat with ff disable or enable .
|
As far as I know that command is from sourcemode funcommands, isn't it?
Quote:
Originally Posted by Zyten
#include <sourcemod>
#include <cstrike>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn)
}
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
if (IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_CT)
{
SetEntityHealth(client, 125);
}
}
Thats the plugin can u make it right
thx alot for the teamgames latest version
|
PHP Code:
#include <sourcemod>
#include <cstrike>
#include <myjailbreak>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn)
}
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
if (!MyJailbreak_IsEventDayRunning() && IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_CT)
{
SetEntityHealth(client, 125);
}
}
Here it is, you'll need to compile it using the myjailbreak include file.
__________________