Hello guys,
Today I decided to do a plugin for my server.
It consists that when a player is banned it prints to all players:
-> Name of player that was banned.
-> Reason of the Ban.
-> Time of the ban.
-> Who Banned the player.
I already done this on my code:
PHP Code:
public void OnPluginStart()
{
HookEvent("round_start", EventRoundStart, EventHookMode_PostNoCopy);
}
public Action EventRoundStart(Event event, char[] name, bool bDontBroadcast)
{
for (int client = 1; client <= MaxClients; client++)
{
char time[32];
char reason[512];
char message[512];
int e_time;
StringToInt(time) == e_time;
OnBanClient(client, e_time, reason, message)
{
PrintToChatAll("Player %s was banned for %s. The ban is %s (0 == permanent)", client, reason, e_time);
}
}
}
Can someone help me with the other part of the code?
Actual errors
Code:
Line 36: error 004 -> function "OnBanClient" is not implemented.
Regards,
SpirT.
__________________