AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   How do i make the server say something every 5 min (https://forums.alliedmods.net/showthread.php?t=314945)

flox1111 03-14-2019 12:52

How do i make the server say something every 5 min
 
Im really bad at this :oops:

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.

iskenderkebab33 03-14-2019 14:03

Re: How do i make the server say something every 5 min
 
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");




All times are GMT -4. The time now is 10:03.

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