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.