MongoL666, Добавлено (20.06.2013, 17:32:49)
---------------------------------------------
Код
new String:DropLP[PLATFORM_MAX_PATH];
public OnPluginStart()
{
RegConsoleCmd("droping", Command_Drop);
}
public Action:Command_Drop(client, args)
{
if (client > 0)
{
BuildPath(Path_SM, DropLP, sizeof(DropLP), "logs/droping.log");
PrintToChatAll("\x04[\x01DropMod\x04] \x03 Внимание, освободитесь от всего оружия.");
decl String:SteamID[32], String:IP[32];
GetClientAuthString(client, SteamID, sizeof(SteamID));
GetClientIP(client, IP, sizeof(IP));
LogToFileEx(DropLP, "user: %N, ip: %s, steam: %s", client, IP, SteamID);
}
return Plugin_Handled;
}