Код
#include <sourcemod>
public OnPluginStart()
{
HookEvent("player_spawn", player_spawn);
}
public Action:player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
CreateTimer(10.0, blabla, client);
}
public Action:blabla(Handle:timer, any:client)
{
if (client > 0 && IsClientInGame(client) && GetClientTeam(client) == 3)
{
PrintToChat(client, "\x05ТУТ ТЕКСТ");
}
}
Текст игроку пишется 2 раза. Пробовал ставить и так
Код
public Action:blabla(Handle:timer, any:client)
{
if (client > 0 && IsClientInGame(client) && GetClientTeam(client) == 3)
{
PrintToChat(client, "\x05ТУТ ТЕКСТ");
return Plugin_Handled;
}
return Plugin_Handled;
}
и так
Код
public Action:blabla(Handle:timer, any:client)
{
if (client > 0 && IsClientInGame(client) && GetClientTeam(client) == 3)
{
PrintToChat(client, "\x05ТУТ ТЕКСТ");
}
return Plugin_Handled;
}
не помогло