Quote:
Originally Posted by Dr.Mohammad
hi!
test this cod:
PHP Code:
#pragmas semicolon 1
#pragmas newdecls required
#include <sourcemod>
public Plugin myinfo =
{
name = "Run command ",
author = "Dr.Mohammad",
description = "Run command every 1 hour",
version = "1.0.0",
url = "https://forums.alliedmods.net/showthread.php?t=314266"
}
public void OnMapStart()
{
CreateTimer(3600.0 , Run_Command);
}
public Action Run_Command(Handle Timer)
{
ServerCommand("sm_map MYMAP");
return Plugin_Stop;
}
|
//SourceMod Batch Compiler
// by the SourceMod Dev Team
//// resetmap.sp
//
// D:\Downloads\sourcemod-1.9.0-git6269-windows\addons\sourcemod\scripting\resetmap.s p(1) : error 031: unknown directive
//
// 1 Error.
//
// Compilation Time: 0,44 sec
// ----------------------------------------
Press enter to exit ...
#pragmas semicolon 1
#pragmas newdecls required
These 2 directive's doesn't work.