Advanced Screen Shot (Automat) - UPDATED 1.1 [STEAM WORK]

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

29 Mar 2014, 21:30

Descriere: Acest plugin este aproape ca orice alt plugin de Screen Shot numai ca e automat .. De exemplu .. Dai amx_ss <nick codat> <id admin> si ii va face poze la codat + il va pune spec si dupa 3 minute (sau cat setati prin cvar) o sa apara un meniu daca vreti sa-i dati ban ... Nu prea ma pricep la explicatii ;)

Descarcare:

Amx_SS.rar
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>

#define PLUGIN_NAME	"Advanced Screen Shot"
#define PLUGIN_VERS	"1.1"
#define PLUGIN_AUTH	"GhosT ***"

#define ADMIN_FLAGS	"c" // ADMIN KICK
#define None		"" // Clear const[] :D

// Variabile

new TextForScreenShot[168];

new CurrentTeam[33];
new CurrentScreenShots[33];

// Others

new bool:ScoreBoardShow[33];

new iPlayer;

// Infos

new PlayerName[32];
new AdminName[32];

new PlayerIp[32];
new AdminIp[32];

new PlayerAuth[32];
new AdminAuth[32];

// Cvars

new MinutesToGive;

public plugin_init( )
{
	register_plugin(PLUGIN_NAME, PLUGIN_VERS, PLUGIN_AUTH);
	register_cvar("ScreenShot_Version", PLUGIN_VERS, FCVAR_SERVER | FCVAR_SPONLY);
	
	register_concmd("amx_ss", "ScreenShotConCmd", ADMIN_KICK, "<Nick-ul Presupusului Codat> <Id Admin>");
	register_concmd("amx_screenshot", "ScreenShotConCmd", ADMIN_KICK, "<Nick-ul Presupusului Codat> <Id Admin>");
	
	MinutesToGive	= register_cvar("AdvancedSS_Minutes", "3");
}
public ScreenShotConCmd(id)
{
	if(get_user_flags(id) & read_flags(ADMIN_FLAGS))
	{
		new szFirstArgument[32], szSecondArgument[32];
		
		read_argv(1, szFirstArgument, sizeof(szFirstArgument));
		read_argv(2, szSecondArgument, sizeof(szSecondArgument));
		
		if(equal(szFirstArgument, None) || equal(szSecondArgument, None))
		{
			client_print(id, print_console, "amx_ss <Nick-ul Presupusului Codat> <Id Admin>");
			return PLUGIN_HANDLED;
		}
		
		iPlayer	= cmd_target(id, szFirstArgument, CMDTARGET_NO_BOTS);
		
		if(!iPlayer)
		{
			client_print(id, print_console, "Jucatorul %s nu exista sau nu este conectat !", szFirstArgument);
			return PLUGIN_HANDLED;
		}
		if(!is_user_alive(iPlayer))
		{
			client_print(id, print_console, "Jucatorul %s este mort !", szFirstArgument);
			return PLUGIN_HANDLED;
		}
		
		get_user_name(iPlayer, PlayerName, sizeof(PlayerName) -1);
		get_user_name(id, AdminName, sizeof(AdminName) -1);
		
		get_user_ip(iPlayer, PlayerIp, sizeof(PlayerIp) -1);
		get_user_ip(id, AdminIp, sizeof(AdminIp) -1);
		
		get_user_authid(iPlayer, PlayerAuth, sizeof(PlayerAuth) -1);
		get_user_authid(id, AdminAuth, sizeof(AdminAuth) -1);
		
		ColorChat(0, RED, "^x04| ScreenShot:^x03 %s^x01 ia facut^x04 4 poze^x01 lui^x03 %s^x01 !", AdminName, PlayerName);
		log_amx("ADMIN: %s (#%s) makes Screen Shots his %s (#%s)", AdminName, AdminAuth, PlayerName, PlayerAuth);
		
		new Float:Minutes = get_pcvar_float(MinutesToGive) * 60.0;
		
// ========================================================================================================================================

			// Admin Functions
		
		ColorChat(id, RED, "^x04 Poza facuta lui^x03 %s^x01 pe serverul^x03 %s^x04 !", PlayerName, HostName( ));
		ColorChat(id, RED, "^x04 Nume admin:^x03 %s^x01 |^x04 Nume presupus codat:^x03 %s^x01 !", AdminName, PlayerName);
		ColorChat(id, RED, "^x04 Ip admin:^x03 %s^x01 |^x04 Ip presupus codat:^x03 %s^x01 !", AdminIp, PlayerIp);
		ColorChat(id, RED, "^x04 Data & Ora:^x03 %s^x04 !", TheTime( ));
		
		set_hudmessage(0, 0, 255, 0.60, 0.40, 0, 5.0, 10.0);
		show_hudmessage(id, "Poza pentru Ban List !");
		
		client_cmd(id, "; screenshot");
		
		set_task(5.0, "Messages", id);
		set_task(Minutes, "BanThis", id);
		
			// End Admin Functions
		
// ========================================================================================================================================

			// Target Functions
			
		CurrentTeam[iPlayer] = get_user_team(iPlayer);
		
		ColorChat(iPlayer, RED, "^x04 Poza facuta de catre adminul^x03 %s^x01 pe serverul^x03 %s^x04 !", AdminName, HostName( ));
		ColorChat(iPlayer, RED, "^x04 Nume:^x03 %s^x01 |^x04 Data & Ora:^x03 %s", PlayerName, TheTime( ));
		ColorChat(iPlayer, RED, "^x04 Server:^x03 %s", HostName( ));
		ColorChat(iPlayer, RED, "^x04 Ip:^x03 %s", PlayerIp)
		
		client_cmd(iPlayer, "; spk misc/antend");
		
		set_task(0.1, "ScreenShot", iPlayer);
		set_task(0.8, "ScreenShot", iPlayer);
		set_task(1.5, "Blind", iPlayer);
		set_task(2.2, "ScreenShot", iPlayer);
		set_task(2.6, "Screboard", iPlayer);
		set_task(2.8, "ScreenShot", iPlayer);
		
		set_task(3.0, "GoSpec", iPlayer);
		set_task(Minutes + 2.0, "GoBack", iPlayer);
		
			// End Target Functions
			
		format(TextForScreenShot, sizeof(TextForScreenShot), "%s", szSecondArgument);
		
		return PLUGIN_CONTINUE;
	}
	else
	{
		client_print(id, print_console, "Nu ai acces la aceasta comanda !");
		return PLUGIN_HANDLED;
	}
	
	return PLUGIN_HANDLED;
}
public Messages(id)
{
	ColorChat(0, RED, "(ADMIN) %s^x01:^x04 ID Messenger:^x03 %s^x04 ! Ai^x03 %d minut%s + BUZZ^x04 !", AdminName, TextForScreenShot, get_pcvar_num(MinutesToGive), get_pcvar_num(MinutesToGive) == 1 ? "" : "e");
	ColorChat(0, RED, "(ADMIN) %s^x01:^x04 ID Messenger:^x03 %s^x04 ! Ai^x03 %d minut%s + BUZZ^x04 !", AdminName, TextForScreenShot, get_pcvar_num(MinutesToGive), get_pcvar_num(MinutesToGive) == 1 ? "" : "e");
	ColorChat(0, RED, "(ADMIN) %s^x01:^x04 ID Messenger:^x03 %s^x04 ! Ai^x03 %d minut%s + BUZZ^x04 !", AdminName, TextForScreenShot, get_pcvar_num(MinutesToGive), get_pcvar_num(MinutesToGive) == 1 ? "" : "e");
	ColorChat(0, RED, "(ADMIN) %s^x01:^x04 ID Messenger:^x03 %s^x04 ! Ai^x03 %d minut%s + BUZZ^x04 !", AdminName, TextForScreenShot, get_pcvar_num(MinutesToGive), get_pcvar_num(MinutesToGive) == 1 ? "" : "e");
	ColorChat(0, RED, "(ADMIN) %s^x01:^x04 ID Messenger:^x03 %s^x04 ! Ai^x03 %d minut%s + BUZZ^x04 !", AdminName, TextForScreenShot, get_pcvar_num(MinutesToGive), get_pcvar_num(MinutesToGive) == 1 ? "" : "e");
}
public ScreenShot(iPlayer)
{
	CurrentScreenShots[iPlayer]++;
	
	client_cmd(iPlayer, "; screenshot");
	
	set_hudmessage(0, 0, 255, 0.60, 0.40, 0, 5.0, 10.0);
	show_hudmessage(iPlayer, "Poza %d/4", CurrentScreenShots[iPlayer]);
	
	if(CurrentScreenShots[iPlayer] == 4)
		CurrentScreenShots[iPlayer] = 0;
}
public Blind(iPlayer)
{
	message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, iPlayer);
	write_short(floatround(4096.0 * 1.0, floatround_round));
	write_short(floatround(4096.0 * 1.0, floatround_round));
	write_short(0x0000);
	write_byte(0);
	write_byte(255);
	write_byte(20);
	write_byte(250);
	message_end( );
}
public Screboard(iPlayer)
{
	ScoreBoardShow[iPlayer] = true;
	
	set_task(0.1, "ShowScoreBoard", iPlayer, _, _, "b");
}
public ShowScoreBoard(iPlayer)
{
	if(ScoreBoardShow[iPlayer])
		client_cmd(iPlayer, "+showscores");
	
	ScoreBoardShow[iPlayer] = false
	
	if(!ScoreBoardShow[iPlayer])
		client_cmd(iPlayer, "-showscores");
}
public GoSpec(iPlayer)
{
	cs_set_user_team(iPlayer, CS_TEAM_SPECTATOR, CS_DONTCHANGE);
	user_silentkill(iPlayer);
}
public GoBack(iPlayer)
{
	if(is_user_connected(iPlayer))
	{
		switch(CurrentTeam[iPlayer])
		{
			case 1:
			{
				cs_set_user_team(iPlayer, CS_TEAM_T, CS_T_ARCTIC);
				
				if(is_user_alive(iPlayer))
					user_silentkill(iPlayer);
			}
			case 2:
			{
				cs_set_user_team(iPlayer, CS_TEAM_CT, CS_CT_SAS);
				
				if(is_user_alive(iPlayer))
					user_silentkill(iPlayer);
			}
			case 3..100:
			{
				cs_set_user_team(iPlayer, CS_TEAM_SPECTATOR, CS_DONTCHANGE);
				
				if(is_user_alive(iPlayer))
					user_silentkill(iPlayer);
			}
		}
	}
}
public BanThis(id)
{
	new MenuTitle[168];
	formatex(MenuTitle, sizeof(MenuTitle), "\d|\r Screen Shot\d |\y Vrei sa ii dai ban lui\r %s\y ?", PlayerName);
	
	new BanMenu = menu_create(MenuTitle, "BanHandler", 0);
	
	menu_additem(BanMenu, "\yDa", "1", 0, -1);
	menu_additem(BanMenu, "\yNu", "2", 0, -1);
	
	menu_setprop(BanMenu, MPROP_EXIT, MEXIT_NEVER);
	menu_display(id, BanMenu);
}
public BanHandler(id, BanMenu, item)
{
	if(item == MENU_EXIT)
		return PLUGIN_HANDLED;
		
	new data[6], szName[64];
	new accesss, callback;
	
	menu_item_getinfo(BanMenu, item, accesss, data, sizeof(data), szName, sizeof(szName), callback);
	
	switch(str_to_num(data))
	{
		case 1:
		{
			client_cmd(id, "wait");
			client_cmd(id, "amx_addban %s 0 ^"Neprezentare Screen Shot^"", PlayerIp);
			
			set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 5.0, 10.0);
			show_hudmessage(0, "%s: %s Banned ! (IP: %s)", AdminName, PlayerName, PlayerIp);
		}
		case 2:
		{
			set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 5.0, 10.0);
			show_hudmessage(0, "%s: %s Curat ! (IP: %s)", AdminName, PlayerName, PlayerIp);
		}
	}
	
	menu_destroy(BanMenu);
	return PLUGIN_HANDLED;
}
stock HostName( )
{
	new Host_Name[64];
	get_cvar_string("hostname", Host_Name, sizeof(Host_Name) -1);
	
	return Host_Name;
}
stock TheTime( )
{
	new CurrentTime[32];
	get_time("%m/%d/%Y^x01 |^x03 %H:%M:%S", CurrentTime, sizeof(CurrentTime) -1);
	
	return CurrentTime;
}
Nume: Advanced Screen Shot
Versiune: 1.1
Link oficial: http://www.extreamcs.com/forum/pluginur ... 41010.html

Instalare:
1. Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting
2. Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

nume_plugin.amxx
4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

- AdvancedSS_Minutes - (default: 3) Cat timp are sa dea pozele .

Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):
  • amx_ss <nick-ul presupusului codat> <id admin> - Face poza unui jucator
    amx_screenshot <nick-ul presupusului codat> <id admin> - Face poza unui jucator
Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
- CStrike

Imagini:
| Afiseaza codul
Image
------------------------------------------------------------------------------------
Image
------------------------------------------------------------------------------------
Image
------------------------------------------------------------------------------------
Image

P.S: Aveti nevoie de advanced bans
Last edited by GhosT *** on 08 Jun 2014, 07:55, edited 3 times in total.
Reason: Updated 1.1 - Steam Work
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 20:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 125 times
Been thanked: 142 times
Contact:

29 Mar 2014, 21:33

Bv Man! >:D< >:D<
User avatar
K0k0
Membru, skill +3
Membru, skill +3
Posts: 1217
Joined: 13 Feb 2014, 00:25
Detinator Steam: Da
Been thanked: 72 times

29 Mar 2014, 21:34

GOOD JoB Ma/\/:)
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2054
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

29 Mar 2014, 23:14

frumos.. astept o poza cu acel meniu:)

@advent.. stii a cui ii poza din semnatura ta ? :))
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 20:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 125 times
Been thanked: 142 times
Contact:

29 Mar 2014, 23:20

Askhanar wrote:frumos.. astept o poza cu acel meniu:)

@advent.. stii a cui ii poza din semnatura ta ? :))
nup, e de pe allied :P
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

30 Mar 2014, 07:34

Askhanar wrote:frumos.. astept o poza cu acel meniu:)

@advent.. stii a cui ii poza din semnatura ta ? :))
Practic vorbind este poza personajului principal din half life .. (genial jocu [partea 1 imi place atat ...]) .. Am uitat cum il cheama ;)
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 10:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times
Contact:

30 Mar 2014, 07:43

Felicitari ! =D>
Ai avut o idee geniala mi se pare foarte frumos acest plugin :)
Succes in continuare. :)
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

30 Mar 2014, 07:45

HyperioN. wrote:Felicitari ! =D>
Ai avut o idee geniala mi se pare foarte frumos acest plugin :)
Succes in continuare. :)
Multumesc .. Un timp o stat privat ;)) Dar m-am gandit ca au nevoie si alti de el .
Lux0R^
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1223
Joined: 13 Jul 2013, 15:31
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Has thanked: 15 times
Been thanked: 10 times

31 Mar 2014, 13:19

simplist si sigur, ai putea sa il faci sa poti detecta anti-ss.
in rest pare o idee buna.
Pauza pana in iulie... licenta ^^

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.

Codul Scripterului: scripting/codul-scripterului-t362300.html#p2754224
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

31 Mar 2014, 13:46

Lux0R^ wrote:simplist si sigur, ai putea sa il faci sa poti detecta anti-ss.
in rest pare o idee buna.
Foarte simplist :-j .. Uneori cred ca uni traiesc doar ca sa faca "+1"
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2808
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 230 times
Been thanked: 128 times
Contact:

31 Mar 2014, 14:28

Interesanta ideeea !
@ Gordon freeman il chema pe ala din HalfLife ? :))
Contact: Activitate scazuta.
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

31 Mar 2014, 15:20

DaNNe. wrote:Interesanta ideeea !
@ Gordon freeman il chema pe ala din HalfLife ? :))
Asta e :D Imi place ultima misiunee pe planeta aia "Xen" ( cand trb sa baati bosu ala , chinez :)) )

Apropo , genial jocu' .. ce o aparut acum din seria Half Life e prea nasol .. Parerea mea . [Ah, FreeMan , cate vremuri am eu cu acest Free Man :)) - Om Liber =))]
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests