Raised This Month: $32 Target: $400
 8% 

Print a message every 5 round for the whole map


Post New Thread Reply   
 
Thread Tools Display Modes
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 03-23-2017 , 12:14   Re: Print a message every 5 round for the whole map
Reply With Quote #11

Quote:
Originally Posted by RumbleFrog View Post
Is this for CSGO?
Yeah, it's for CSGO
__________________
PinHeaDi is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-23-2017 , 15:32   Re: Print a message every 5 round for the whole map
Reply With Quote #12

What you could try to debug is PrintToChatAll at the end of each round, if it doesn't print, switch to another hook.
RumbleFrog is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 03-25-2017 , 06:09   Re: Print a message every 5 round for the whole map
Reply With Quote #13

PHP Code:
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(10) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(11) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(12) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(13) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(14) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(15) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(16) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(17) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(18) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(30) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(88) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(98) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(98) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(128) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(128) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(147) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(151) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(162) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(162) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(164) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(179) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(185) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(190) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(194) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(215) : error 147: new-style declarations are required
// C:\Users\SSadistic\Desktop\scripting\MyPlugins\scripting\iplay_autorespawn.sp(220) : error 147: new-style declarations are required 
PHP Code:
#include <sourcemod>
#include <cstrike>
#include <sdktools>
#pragma newdecls required
#pragma semicolon 1
#pragma tabsize 0 
But i'm pretty sure the plugin is okay. If I remove "#pragma newdecls required" it's fine, but it seems I need it for the new HUD "extra" to work.
__________________
PinHeaDi is offline
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 03-31-2017 , 15:36   Re: Print a message every 5 round for the whole map
Reply With Quote #14

Yes,you can use this on CSGO
stephen473 is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 03-31-2017 , 22:43   Re: Print a message every 5 round for the whole map
Reply With Quote #15

PHP Code:
#pragma semicolon 1

#include <sdktools>
#include <cstrike>

#pragma newdecls required

public Plugin myinfo 
{
    
name "Message every 5 rounds example",
    
author "SM9(xCoderx)",
    
description "Prints a message every 5 rounds.",
    
version "0.1",
    
url "https://www.fragdeluxe.com"
};

public 
void OnPluginStart() {
    
HookEvent("round_start"Event_RoundStart);
}

public 
Action Event_RoundStart(Event evEventchar[] szNamebool bDontBroadcast)
{
    
int iRoundNum GetTeamScore(CS_TEAM_T) + GetTeamScore(CS_TEAM_CT);
    
    if(
iRoundNum != 0) {
        return;
    }
    
    
PrintToChatAll("Round %d Test message."iRoundNum);

Should do the trick.

Last edited by SM9; 03-31-2017 at 22:44.
SM9 is offline
Reply


Thread Tools
Display Modes

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:22.


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