Raised This Month: $ Target: $400
 0% 

HELP OnBanClient()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode