u looking for this?
for other plugins u need to get handle for plugin.
PHP Code:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR "Mithat Guner"
#define PLUGIN_VERSION "1.00"
#include <sourcemod>
#include <sdktools>
#pragma newdecls required
public Plugin myinfo =
{
name = "Example Plugin",
author = PLUGIN_AUTHOR,
description = "Example Plugin",
version = PLUGIN_VERSION,
url = "pluginler.com"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_yazar", YAZAR);
}
public Action YAZAR(int client, int args)
{
char author[64];
GetAuthor(author, sizeof(author), INVALID_HANDLE);
PrintToChat(client, "%s", author);
}
stock void GetAuthor(char[] author, int max, Handle plugin)
{
GetPluginInfo(plugin, PlInfo_Author, author, max);
}