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

help change from start round to time only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benmassey
Member
Join Date: Dec 2018
Old 12-10-2018 , 22:47   help change from start round to time only
Reply With Quote #1

hey someone make that script for me
PHP Code:
#include <sourcemod> 

#pragma semicolon 1 
#pragma newdecls required 

public void OnPluginStart() 

    
RegConsoleCmd("sm_sa"CMD_sa"Welcome message"); 
     
    
HookEvent("round_start"Hook_roundstart); 


public 
Action CMD_sa(int clientint args

    
PrintToChat(client" \x05 Welcome to my Server \x01 GL&HF"); 


public 
Action Hook_roundstart(Event event, const char[] namebool dontBroadcast

    
CreateTimer(120.0welcome_timerTIMER_REPEAT); 


public 
Action welcome_timer(Handle timer

    
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!"); 
PrintToChatAll(" \x05  Server \x01 have fun!"); 

the problem is everytime the round start those 2 massage flooding the server
i want to make the script work only 120 sec not when the round start
any ideas?
benmassey is offline
Cruze
Veteran Member
Join Date: May 2017
Old 12-11-2018 , 00:25   Re: help change from start round to time only
Reply With Quote #2

PHP Code:
#include <sourcemod>  

#pragma semicolon 1  
#pragma newdecls required  

public void OnPluginStart()  
{  
    
RegConsoleCmd("sm_sa"CMD_sa"Welcome message");
}  

public 
Action CMD_sa(int clientint args)  
{  
    
PrintToChat(client" \x05 Welcome to my Server \x01 GL&HF");  
}  

public 
void OnMapStart()
{  
    
CreateTimer(120.0welcome_timerTIMER_REPEAT);  
}  

public 
Action welcome_timer(Handle timer)  
{  
    
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!");  
PrintToChatAll(" \x05  Server \x01 have fun!");  

__________________
Taking paid private requests! Contact me
Cruze is offline
benmassey
Member
Join Date: Dec 2018
Old 12-11-2018 , 11:29   Re: help change from start round to time only
Reply With Quote #3

Quote:
Originally Posted by Cruze View Post
PHP Code:
#include <sourcemod>  

#pragma semicolon 1  
#pragma newdecls required  

public void OnPluginStart()  
{  
    
RegConsoleCmd("sm_sa"CMD_sa"Welcome message");
}  

public 
Action CMD_sa(int clientint args)  
{  
    
PrintToChat(client" \x05 Welcome to my Server \x01 GL&HF");  
}  


public 
void OnMapStart()
{  
    
CreateTimer(120.0welcome_timerTIMER_REPEAT);  
}  

public 
Action welcome_timer(Handle timer)  
{  
    
PrintToChatAll(" \x05 Welcome to my Server \x01 have fun!");  
PrintToChatAll(" \x05  Server \x01 have fun!");  



tnx
benmassey 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 08:20.


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