View Single Post
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 07-25-2017 , 15:31   Re: How can check author of a plugin?
Reply With Quote #8

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 clientint args)
{
    
char author[64];
    
GetAuthor(authorsizeof(author), INVALID_HANDLE);
    
PrintToChat(client"%s"author);
}
stock void GetAuthor(char[] authorint maxHandle plugin)
{
    
GetPluginInfo(pluginPlInfo_Authorauthormax);


Last edited by MithatGuner; 07-25-2017 at 15:33.
MithatGuner is offline