Raised This Month: $32 Target: $400
 8% 

Adminlib.inc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-04-2017 , 13:49   Adminlib.inc
Reply With Quote #1

Anyone Knows Where i Can Get This Kind Of Include i need it badly
for this plugin #include <adminlib>

Quote:
// plugin_sank_listen.sma
// Author: Luke Sankey
// Date March 31, 2001
//
// Fuctions included in this plugin:
// Intercepts all client say messages and sends them to admins

#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>

#define ACCESS_LISTEN 2048

new STRING_VERSION[MAX_DATA_LENGTH] = "2.50.0";


public plugin_init()
{
plugin_registerinfo("Sank Listen Plugin", "Enables admins to hear everything from everybody.", STRING_VERSION);

plugin_registercmd("say", "HandleSay", ACCESS_ALL);
plugin_registercmd("say_team", "HandleSay", ACCESS_ALL);

return PLUGIN_CONTINUE;
}


/********************************************* ********************************/
/********************************************* ********************************/
/********************************************* ********************************/


///////////////////////////////////////////////////////////////////////////////
// TODO: comments needed here
///////////////////////////////////////////////////////////////////////////////
public HandleSay(HLCommand, HLData, HLUserName, UserIndex)
{
new Command[MAX_COMMAND_LENGTH];
new Speech[MAX_DATA_LENGTH];
new User[MAX_NAME_LENGTH];
new Text[MAX_TEXT_LENGTH];

convert_string(HLCommand, Command, MAX_COMMAND_LENGTH);
convert_string(HLData, Speech, MAX_DATA_LENGTH);
convert_string(HLUserName, User, MAX_NAME_LENGTH);
strstripquotes(Speech);

// Display all messages to server admins, whether dead or alive
new i;
new maxplayers = maxplayercount();
new Name[MAX_NAME_LENGTH];
new SessionID, WONID;
new UserTeam, UserDead;
new ListenTeam, ListenDead;


// Message the Listener on two conditions:
// 1. If User's "dead status" is not same as listener's "dead status,"
// 2. If command is say_team and User's "team status" is not same
// Otherwise, the listener will see it anyway, so there is no need to
// repeat it, which would make it show twice to the listener.

snprintf(Text, MAX_TEXT_LENGTH, "%s : %s", User, Speech);

// Get User's information/status
if (playerinfo(UserIndex, Name, MAX_NAME_LENGTH, SessionID, WONID, UserTeam, UserDead))
{
// Get each player's information/status and compare it to User's
for(i=1; i<=maxplayers; i++)
{
if(playerinfo(i, Name, MAX_NAME_LENGTH, SessionID, WONID, ListenTeam, ListenDead) == 1)
{
if(access(ACCESS_LISTEN, Name))
{
// Message the Listener on two conditions:
// 1. If the UserDead is not the same as ListenDead,
if (UserDead != ListenDead)
{
messageex(Name, Text, print_chat);
}
// 2. or if Command is "say_team" and User's Team is not the same as Listener's Team
else if ( (streq(Command, "say_team") == 1) && (UserTeam != ListenTeam) )
{
messageex(Name, Text, print_chat);
}
} // endif ACCESS_LISTEN
}
} // End for loop
}

return PLUGIN_CONTINUE;
}
Ynet is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-04-2017 , 14:22   Re: Adminlib.inc
Reply With Quote #2

Get it from where you downloaded the plugin.

P.S. That plugin is for AdminMod not AMXX.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-04-2017 , 15:30   Re: Adminlib.inc
Reply With Quote #3

Also AdminMod (the latest version) is very questionable (contains back doors) and shouldn't be used.
__________________
fysiks is offline
Reply



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 02:43.


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