34 lines
891 B
SourcePawn
34 lines
891 B
SourcePawn
#if defined _sourcebans_included
|
|
#endinput
|
|
#endif
|
|
#define _sourcebans_included
|
|
|
|
public SharedPlugin:__pl_sourcebans =
|
|
{
|
|
name = "SourceBans",
|
|
file = "sourcebans.smx",
|
|
#if defined REQUIRE_PLUGIN
|
|
required = 1
|
|
#else
|
|
required = 0
|
|
#endif
|
|
};
|
|
|
|
#if !defined REQUIRE_PLUGIN
|
|
public __pl_sourcebans_SetNTVOptional()
|
|
{
|
|
MarkNativeAsOptional("SBBanPlayer");
|
|
MarkNativeAsOptional("SBCheckBans");
|
|
}
|
|
#endif
|
|
|
|
/*********************************************************
|
|
* Ban Player from server
|
|
*
|
|
* @param client The client index of the admin who is banning the client
|
|
* @param target The client index of the player to ban
|
|
* @param time The time to ban the player for (in minutes, 0 = permanent)
|
|
* @param reason The reason to ban the player from the server
|
|
* @noreturn
|
|
*********************************************************/
|
|
native SBBanPlayer(client, target, time, String:reason[]); |