im creating a sm_allinfo plugin for sourcemod and ive got some coded but it want compile i cant figure out whats wrong and why it want taget a person when i type sm_allinfo player
here the code any help would be greatly appreciated
Code:
/* Plugin Template generated by Pawn Studio */
#include <sourcemod>
public Plugin:myinfo =
{
name = "sm_allinfo",
author = "{7~11} TROLL",
description = "gets single clients steam id,name,and ip base on the amx version",
version = "1.0",
url = "www.711clan.net"
}
public OnPluginStart()
{
RegAdminCmd("sm_allinfo","command_users" ADMFLAG_BAN, "sm_allinfo - .::[Name ::STEAM ID ::IP ]::.");
}
public Action:Command_Users(client,args)
{
if (args < 2)
{
ReplyToCommand(client, "sm_allinfo");
return Plugin_Handled;
}
new String:target[64];
GetCmdArg(1, target, sizeof(target));
new String:name[64];
GetCmdArg(2, name, sizeof(name));
new clients[2];
SearchForClients(target, clients, 2);
if (!FindTarget(client, target))
decl String:t_name[16], String:t_ip[16], String:t_steamid[16];
Format(t_name, sizeof(t_name), "Nick");
Format(t_ip, sizeof(t_ip), "IP");
Format(t_steamid, sizeof(t_steamid), "SteamID");
PrintToConsole(client, "# %-25s %-20.5s %s", t_name, t_ip, t_steamid);
}
__________________