2006-11-08 10:28:32 +01:00
|
|
|
#include <sourcemod>
|
2007-01-01 22:46:33 +01:00
|
|
|
#include <handles>
|
2006-11-08 10:28:32 +01:00
|
|
|
|
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/"
|
2007-01-01 22:46:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
native PrintStuff(const String:buffer[]);
|
2006-11-08 10:28:32 +01:00
|
|
|
|
2007-01-01 22:46:33 +01:00
|
|
|
public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max)
|
2006-11-08 10:28:32 +01:00
|
|
|
{
|
2007-01-01 22:46:33 +01:00
|
|
|
new String:buffer[PLATFORM_MAX_PATH];
|
|
|
|
new FileType:type;
|
2006-11-12 03:27:27 +01:00
|
|
|
|
2007-01-01 22:46:33 +01:00
|
|
|
new Handle:dir = OpenDirectory("addons/stripper");
|
|
|
|
while (ReadDirEntry(dir, buffer, sizeof(buffer), type))
|
2006-12-15 14:45:21 +01:00
|
|
|
{
|
2007-01-01 22:46:33 +01:00
|
|
|
decl String:stuff[1024];
|
|
|
|
Format(stuff, sizeof(stuff), "Type: %d Dir: %s", _:type, buffer)
|
|
|
|
PrintStuff(stuff);
|
2006-12-15 14:45:21 +01:00
|
|
|
}
|
2007-01-01 22:46:33 +01:00
|
|
|
CloseHandle(dir);
|
2006-12-15 14:45:21 +01:00
|
|
|
|
2007-01-01 22:46:33 +01:00
|
|
|
return true;
|
2006-11-08 10:28:32 +01:00
|
|
|
}
|