View Single Post
Author Message
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 03-04-2019 , 14:26   HELP OnBanClient()
Reply With Quote #1

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"EventRoundStartEventHookMode_PostNoCopy);
}

public 
Action EventRoundStart(Event eventchar[] namebool bDontBroadcast)
{
    for (
int client 1client <= MaxClientsclient++)
    {
        
char time[32];
        
char reason[512];
        
char message[512];
        
int e_time;
        
StringToInt(time) == e_time;
        
OnBanClient(cliente_timereasonmessage)
        {
            
PrintToChatAll("Player %s was banned for %s. The ban is %s (0 == permanent)"clientreasone_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.
__________________
SpirT is offline