38 lines
590 B
SourcePawn
38 lines
590 B
SourcePawn
/* Plugin Template generated by Pawn Studio */
|
|
|
|
#include <sourcemod>
|
|
|
|
public Plugin:myinfo =
|
|
{
|
|
name = "Fakeclients",
|
|
author = "Chefe",
|
|
description = "",
|
|
version = "1.0",
|
|
url = "<- URL ->"
|
|
}
|
|
|
|
public OnPluginStart()
|
|
{
|
|
RegAdminCmd("sm_fakeclient",
|
|
Command_Fakeclient,
|
|
ADMFLAG_KICK,
|
|
"Add a Fakeclient.")
|
|
}
|
|
|
|
|
|
public Action:Command_Fakeclient(client_at, args)
|
|
{
|
|
if (args < 1)
|
|
{
|
|
PrintToConsole(client_at, "Usage: sm_fakeclient <name>");
|
|
return Plugin_Handled;
|
|
}
|
|
|
|
new String:name[256]
|
|
|
|
GetCmdArg(1, name, sizeof(name));
|
|
|
|
CreateFakeClient(name);
|
|
|
|
return Plugin_Handled;
|
|
} |