#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
public Plugin:myinfo =
{
name = "Info po śmierci",
author = "",
description = "Masz 5 sec by dac info",
version = "1.0",
url = ""
};
public OnPluginStart()
{
HookEvent("player_death", Player_Death);
}
public Action:Player_Death(Handle:event, const String:name[], bool:dontBroadcast)
{
if(GameRules_GetProp("m_bWarmupPeriod") == 0)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if((client != 0 && client <= MaxClients) && IsClientInGame(client))
{
CreateTimer(5.0, CzasInfo, client);
SetClientListeningFlags(client, VOICE_TEAM);
PrintToChat(client, " [\x04Info\x01] Masz 5 sekund, aby dać info swojej drużynie.");
}
}
}
public Action:CzasInfo(Handle:timer, any:client)
{
if((client != 0 && client <= MaxClients) && IsClientInGame(client))
SetClientListeningFlags(client, VOICE_NORMAL);
}
Zdaje się, że działa tylko z mikro :v


Dodatki SourceMod




Moja zawartość
Mężczyzna

