2006-11-08 10:28:32 +01:00
|
|
|
#include <sourcemod>
|
|
|
|
|
2006-11-10 07:07:41 +01:00
|
|
|
public Plugin:myinfo =
|
2006-11-10 01:16:33 +01:00
|
|
|
{
|
|
|
|
name = "Test Plugin",
|
|
|
|
author = "BAILOPAN",
|
|
|
|
description = "Tests Stuff",
|
|
|
|
version = "1.0.0.0",
|
2006-11-10 08:49:38 +01:00
|
|
|
url = "http://www.sourcemod.net/"
|
2006-11-10 01:16:33 +01:00
|
|
|
}
|
2006-11-08 10:28:32 +01:00
|
|
|
|
2006-12-15 14:45:21 +01:00
|
|
|
copy(String:dest[], maxlength, const String:source[])
|
2006-11-08 10:28:32 +01:00
|
|
|
{
|
2006-12-15 14:45:21 +01:00
|
|
|
new len
|
2006-11-12 03:27:27 +01:00
|
|
|
|
2006-12-15 14:45:21 +01:00
|
|
|
while (source[len] != '\0' && len < maxlength)
|
|
|
|
{
|
|
|
|
dest[len] = source[len]
|
|
|
|
len++
|
|
|
|
}
|
|
|
|
|
|
|
|
dest[len] = '\0'
|
2006-11-12 03:27:27 +01:00
|
|
|
}
|
|
|
|
|
2006-12-15 14:45:21 +01:00
|
|
|
public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max)
|
2006-11-12 03:27:27 +01:00
|
|
|
{
|
2006-12-15 14:45:21 +01:00
|
|
|
copy(error, err_max, "I don't like food anymore!")
|
|
|
|
return false
|
2006-11-08 10:28:32 +01:00
|
|
|
}
|