Raised This Month: $51 Target: $400
 12% 

How do i make the server say something every 5 min


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
flox1111
New Member
Join Date: Mar 2019
Old 03-14-2019 , 12:52   How do i make the server say something every 5 min
Reply With Quote #1

Im really bad at this

Is this right ?
https://gyazo.com/fcae289ffb098119425b394247eb9a24

And if it is how do i make it say that every 5 min in the server, that screenshot is in server.cfg.
flox1111 is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 03-14-2019 , 14:03   Re: How do i make the server say something every 5 min
Reply With Quote #2

This will Print the msg every 5 mins after round start

PHP Code:
public void OnPluginStart()
{
    
HookEvent("round_start"RoundStart);
}

public 
Action RoundStart(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
CreateTimer(300.0Timer_Say);
    
    return 
Plugin_Continue;
}

public 
Action Timer_Say(Handle hTimer)
{
    
PrintToChatAll("Anyone breaking rules? DM flox#4853 on discord");
    
PrintToChatAll("Don't forget to read the rules !rules");

iskenderkebab33 is offline
Reply



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 15:59.


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