View Single Post
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 04-23-2018 , 08:44   Re: [CS:GO] MyJailbreak (warden, days, menu & more) [Beta 13 / 26-11-17]
Reply With Quote #824

Quote:
Originally Posted by FzR View Post
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 View Post
#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[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));

    if (!
MyJailbreak_IsEventDayRunning() && IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_CT)
    {
        
SetEntityHealth(client125);
    }

Here it is, you'll need to compile it using the myjailbreak include file.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline