sourcemod/plugins/test.sma
David Anderson 8792f0b4f0 new plugin API, sample plugin is now a fail load plugin
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40217
2006-12-15 13:45:21 +00:00

30 lines
537 B
Plaintext

#include <sourcemod>
public Plugin:myinfo =
{
name = "Test Plugin",
author = "BAILOPAN",
description = "Tests Stuff",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
}
copy(String:dest[], maxlength, const String:source[])
{
new len
while (source[len] != '\0' && len < maxlength)
{
dest[len] = source[len]
len++
}
dest[len] = '\0'
}
public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max)
{
copy(error, err_max, "I don't like food anymore!")
return false
}