daxiuuu
07-09-2016, 08:18
hi, im looking for plugin which will do sth every X seconds. i mean i want to have r_cleardecals plugin on my aim+dm server. atm i have that
#include <sourcemod>
public OnPluginStart()
{
HookEvent("player_death", Event_Death);
}
public Event_Death(Handle:event, const String:name[], bool:dontBroadcast)
{
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i)) continue;
FakeClientCommand(i, "r_cleardecals");
}
} can someone help me and tell me what is the event for time instead of player_death ?
and will it be working?
#include <sourcemod>
public OnPluginStart()
{
HookEvent("player_death", Event_Death);
}
public Event_Death(Handle:event, const String:name[], bool:dontBroadcast)
{
for (new i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i)) continue;
FakeClientCommand(i, "r_cleardecals");
}
} can someone help me and tell me what is the event for time instead of player_death ?
and will it be working?