Quote:
Originally Posted by ghostdlr
Code:
#include <sourcemod>
#include <sdktools>
public Plugin:myinfo =
{
name = "New Plugin",
author = "Unknown",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}
public OnPluginStart()
{
PrintToServer("Hello world!");
ServerCommand("echo test");
}
public OnClientPutInServer(client){
PrintToServer("Hello world!");
ServerCommand("echo test");
}
Startup arguments: -console -game dota -port 1505 -ip my_ip +maxplayers 10 +map dota +exec server.cfg
|
That works for me.
The ServerCommand one is slightly delayed there as server commands are queued and then processed at the top of each frame, and there's a lot going on at initial start, leading to a very long frame.
Dumb question, but did you compile the plugin and put the smx in sourcemod/plugins/ ? Does it display when you type "sm plugins list" into the console?