
#include <sourcemod>
#define PLUGIN_VERSION "0.01"
public Plugin:myinfo =
{
name = "Pllugin name",
author = "Your name",
description = "Description",
version = PLUGIN_VERSION,
url = "your url"
};
// main programme 開始la
public OnPluginStart()
{
PrintToChatAll(" Your message here "); // Print to chat box
PrintHintTextToAll(" Your message here "); //Print to Hints box
}
[code]
#include <sourcemod>
#define PLUGIN_VERSION "0.01"
public Plugin:myinfo =
{
name = "llugin name",
author = "Your name",
description = "Description",
version = PLUGIN_VERSION,
url = "your url"
};
// main programme 開始la
public OnPluginStart()
{
CreateTimer(45.0, PrintMsg, _,TIMER_REPEAT); // repeat to < wait 45 seconds, then do PrintMsg1 >
}
public ActionrintMsg1(Handle:timer)
{
PrintHintTextToAll(" ");
PrintHintTextToAll(" ");
// .........
}
#include <sourcemod>
#define PLUGIN_VERSION "0.01"
public Plugin:myinfo =
{
name = "llugin name",
author = "Your name",
description = "Description",
version = PLUGIN_VERSION,
url = "your url"
};
// main programme 開始la
public OnPluginStart()
{
CreateTimer(45.0, PrintMsg1); // wait 45 seconds, then do PrintMsg1
}
public ActionrintMsg1(Handle:timer)
{
PrintHintTextToAll(" ");
PrintHintTextToAll(" ");
// .........
CreateTimer(45.0, PrintMsg2); // wait 45 seconds, then do PrintMsg2
}
public ActionrintMsg2(Handle:timer)
{
PrintHintTextToAll(" ");
PrintHintTextToAll(" ");
// .....
CreateTimer(45.0, PrintMsg1); // wait 45 seconds, then do PrintMsg1
}
rintMsg1----->wait 45s ----> PrintMsg2

| 歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/) | Powered by Discuz! 6.0.0 |