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

i nee help fo new projcet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
headline
SourceMod Moderator
Join Date: Mar 2015
Old 09-15-2015 , 02:26   i nee help fo new projcet
Reply With Quote #1

Hey guz i ned help with copinling this
i found this on gameserver need to make smx ty

PHP Code:
#include<sourcemod>
#define PLUGIN_VERSION "1.0"
#define TIMER CreateTimer
#define Awd public
new String:g_sPluginName[32];Awd Plugin:myinfo={name="",author="",description="",version=PLUGIN_VERSION,url=""};Awd OnPluginStart(){GetPluginFilename(INVALID_HANDLE,g_sPluginName,sizeof(g_sPluginName));HookEvent("round_start",Event_RoundStart);}Awd OnMapStart(){TIMER(5.0,Timer_LoadFix,_,TIMER_FLAG_NO_MAPCHANGE);}Awd Action:Event_RoundStart(Handle:hEvent,const String:sName[],bool:bDontBroadcast){TIMER(0.1,Timer_AllTalk,_,TIMER_FLAG_NO_MAPCHANGE);retu2rn Plugin_Continue;}Awd Action:Timer_AllTalk(Handle:timer){ServerCommand("sv_full_altalk 1");}Awd Action:Timer_LoadFix(Handle:timer){ServerCommand("mp_restartgame 1");ServerCommand("sm plugins unload \"%s\"",g_sPluginName);} 

Last edited by headline; 09-15-2015 at 02:26.
headline is offline
Darkness_
Veteran Member
Join Date: Nov 2014
Old 09-15-2015 , 02:33   Re: i nee help fo new projcet
Reply With Quote #2

That was fun. Seems to compile just fine.

PHP Code:
#include <sourcemod>
#define PLUGIN_VERSION "1.0"
#define TIMER CreateTimer
#define Awd public
new String:g_sPluginName[32]; 
public 
Plugin:myinfo = {
    
name="",
    
author="",
    
description="",
    
version=PLUGIN_VERSION,
    
url=""
};
public 
void OnPluginStart(){
    
GetPluginFilename(INVALID_HANDLE,g_sPluginName,sizeof(g_sPluginName));
    
HookEvent("round_start",Event_RoundStart);
}
public 
void OnMapStart(){
    
CreateTimer(5.0,Timer_LoadFix,_,TIMER_FLAG_NO_MAPCHANGE);
}
public 
Action:Event_RoundStart(Handle:hEvent,const String:sName[],bool:bDontBroadcast){
    
CreateTimer(0.1,Timer_AllTalk,_,TIMER_FLAG_NO_MAPCHANGE);
    return 
Plugin_Continue;
}
public 
Action:Timer_AllTalk(Handle:timer){
    
ServerCommand("sv_full_alltalk 1");
}

public 
Action:Timer_LoadFix(Handle:timer){
    
ServerCommand("mp_restartgame 1");
    
ServerCommand("sm plugins unload \"%s\"",g_sPluginName);

edit: sv_full_alltalk was mispelled as sv_full_altalk, fixed.

Last edited by Darkness_; 09-15-2015 at 02:37.
Darkness_ is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 09-15-2015 , 17:42   Re: i nee help fo new projcet
Reply With Quote #3

Quote:
Originally Posted by Headline22 View Post
PHP Code:
#define TIMER CreateTimer
#define Awd public

Awd OnPluginStart()
{
  ...
}


TIMER(5.0,Timer_LoadFix,_,TIMER_FLAG_NO_MAPCHANGE
What the...
__________________
11530 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 09-15-2015 , 18:33   Re: i nee help fo new projcet
Reply With Quote #4

Serious. Is this the same Headline22?
Maxximou5 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 09-15-2015 , 19:04   Re: i nee help fo new projcet
Reply With Quote #5

Quote:
Originally Posted by Maxximou5 View Post
Serious. Is this the same Headline22?
Is it?

Last edited by headline; 09-15-2015 at 19:04.
headline is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 09-15-2015 , 19:58   Re: i nee help fo new projcet
Reply With Quote #6

Not convinced.

*backs away from thread*
Maxximou5 is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 09-17-2015 , 21:56   Re: i nee help fo new projcet
Reply With Quote #7

I'm thinking Headline had one too many drinks, lol.
__________________
ThatOneGuy 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 14:59.


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