Raised This Month: $ Target: $400
 0% 

sm_allinfo code help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
{7~11} TROLL
Senior Member
Join Date: Oct 2008
Location: Atlanta,Georgia
Old 01-07-2009 , 17:02   sm_allinfo code help
Reply With Quote #1

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);
}
__________________

Last edited by {7~11} TROLL; 01-07-2009 at 17:11.
{7~11} TROLL is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode