Cumpar plugin cs 1.6

Anunturi legate de vanzari/cumparari.
*Nu suntem responsabili de tranzactiile efectuate intre membri. Utilizatorii sunt sfatuiti sa-si ia maximul de precautii inainte de finalizarea unei tranzactii pentru a preveni posibilitatea unei inselaciuni.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
d e a l e r -
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 13 Feb 2016, 16:52
Detinator Steam: Da
CS Status: Connection lost
Reputatie: Fost eXtream Mod
Fost Membru Club eXtreamCS (1 luna)
Fond eXtream: 0
Location: Mediaş, Sibiu, România
Discord: dealer1945
Has thanked: 33 times
Been thanked: 79 times
Contact:

16 Feb 2021, 21:15

Am nevoie de un plugin care sa stocheze in timp real toate informatiile despre server si playeri.

Cate un tabel separat pentru amandoua.
Server - hostname, playeri online, harta curenta, urmatoarea harta.
Playeri - O lista cu playerii intrati pe server cu toate statisticile (kill-uri, minute jucate, scor, rank-ul pe server etc..)


Exista deja niste plugine pe net, dar am nevoie sa fie un singur plugin, nu ma intereseaza daca sunt parti luate de pe net, ma intereseaza sa fie functional si sa isi faca treaba.
RoyalServer
Filiq_
Utilizator neserios
Utilizator neserios
Posts: 0
Joined: 02 Nov 2014, 18:21
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Scripter eXtreamCS
Utilizator neserios
Fond eXtream: 0
Location: Constanta
Has thanked: 40 times
Been thanked: 30 times

16 Feb 2021, 21:44

"Server - hostname, playeri online, harta curenta, urmatoarea harta." ai libraria gameq prin care poti face asta.

daca vrei te pot ajuta eu gratuit cand am timp, asta in caz de nu ai nevoie urgent
https://discord.gg/VABVdhXMrK ZM CSO server in working..
User avatar
d e a l e r -
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 13 Feb 2016, 16:52
Detinator Steam: Da
CS Status: Connection lost
Reputatie: Fost eXtream Mod
Fost Membru Club eXtreamCS (1 luna)
Fond eXtream: 0
Location: Mediaş, Sibiu, România
Discord: dealer1945
Has thanked: 33 times
Been thanked: 79 times
Contact:

16 Feb 2021, 21:51

Filiq_ wrote:
16 Feb 2021, 21:44
"Server - hostname, playeri online, harta curenta, urmatoarea harta." ai libraria gameq prin care poti face asta.

daca vrei te pot ajuta eu gratuit cand am timp, asta in caz de nu ai nevoie urgent
Am deja gameq, insa am probleme cu clientii cu host la ovh din cauza porturilor blocate si este mai ok sa am direct plugin.

Este cam urgent, dar mersi oricum.
PedoBearJB
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 10 Aug 2015, 16:09
Detinator Steam: Da
SteamID: PedoBearJB
Fond eXtream: 0
Location: sys_admin
Has thanked: 1 time
Contact:

18 Feb 2021, 22:14

Pm!!!
User avatar
CryWolf
Administrator
Administrator
Posts: 1355
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

18 Feb 2021, 23:25

Ce nu folosesti Psychostats sau HL:Stats ? e mult mai simplu desi un astfel de plugin se poate face foarte usor, e mai bine sa folosesti HL:Stats sau psychostats ca are si pagina .PHP sa le vezi online
Uite la psychostats, desi are un mysql injection in awards.php e ok exemplu am blocat awardsu si in rest e OK.

Ce nevoie ai de un plugin, pe care automat logurile serverului trebuie sa fie on .
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
User avatar
d e a l e r -
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 13 Feb 2016, 16:52
Detinator Steam: Da
CS Status: Connection lost
Reputatie: Fost eXtream Mod
Fost Membru Club eXtreamCS (1 luna)
Fond eXtream: 0
Location: Mediaş, Sibiu, România
Discord: dealer1945
Has thanked: 33 times
Been thanked: 79 times
Contact:

23 Feb 2021, 22:39

CryWolf wrote:
18 Feb 2021, 23:25
Ce nu folosesti Psychostats sau HL:Stats ? e mult mai simplu desi un astfel de plugin se poate face foarte usor, e mai bine sa folosesti HL:Stats sau psychostats ca are si pagina .PHP sa le vezi online
Uite la psychostats, desi are un mysql injection in awards.php e ok exemplu am blocat awardsu si in rest e OK.

Ce nevoie ai de un plugin, pe care automat logurile serverului trebuie sa fie on .
Am explicat deja mai sus de ce am nevoie de plugin + am nevoie de statistica strict server, nu vreau sa incarc panelul cu fisiere inutile facute de alti oameni, vreau sa fie strict codul meu, d-aia vreau un plugin care sa contorizeze informatiile despre server. Mersi oricum.
User avatar
Doctor whO? <3
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

28 Feb 2021, 10:57

https://forums.alliedmods.net/showthread.php?t=70140
Cauta un scripter sa ti-l modifice cum vrei tu.
ZackChoi
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 28 Dec 2019, 01:39
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 7 times

01 Mar 2021, 17:21

sql_stats.sma | Afiseaza codul
#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < cstrike >
#include < sqlx >

#define MAX_PLAYERS	32

#define szHost	""
#define szUser	""
#define szPass	""
#define szDB	""

new Handle: MySQL_Server;

static const PLAYERS [ ] = "CREATE TABLE IF NOT EXISTS `players_info` ( name varchar(32), ip varchar(32), kills varchar(32), deaths varchar(32), team varchar(32) );";
static const GENERAL [ ] = "CREATE TABLE IF NOT EXISTS `general_info` ( server_name varchar(32), current_map varchar(32), next_map varchar(32) );";

new PlayerName [ MAX_PLAYERS + 1 ] [ MAX_PLAYERS ];
new PlayerIP [ MAX_PLAYERS + 1 ] [ 16 ];

public plugin_precache ( )
{
	MySQL_Server = SQL_MakeDbTuple ( szHost, szUser, szPass, szDB, 3 );

	SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", PLAYERS );
	SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", GENERAL );
}

public plugin_init ( )
{
	new pQuery [ 256 ], server_hostname [ 64 ], current_map [ 32 ], next_map [ 32 ];
	get_cvar_string ( "hostname", server_hostname, charsmax ( server_hostname ) );
	get_cvar_string ( "amx_nextmap", next_map, charsmax ( next_map ) );
	get_mapname ( current_map, charsmax ( current_map ) );

	formatex ( pQuery, charsmax ( pQuery ), "DELETE * FROM `general_info`" );
	
	SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", pQuery );

	formatex ( pQuery, charsmax ( pQuery ), "INSERT INTO `general_info` ( server_name, current_map, next_map ) VALUES ( '%s', '%s', '%s' );", server_hostname, current_map, next_map );

	SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", pQuery );
}

public client_putinserver ( iEntity )
{
	if ( is_user_bot ( iEntity ) || is_user_hltv ( iEntity ) )
		return;

	get_user_name ( iEntity, PlayerName [ iEntity ], charsmax ( PlayerName ) );
	get_user_ip ( iEntity, PlayerIP [ iEntity ], charsmax ( PlayerIP ), 1 );

	set_task ( 1.0, "UpdateClientData", iEntity );
}

public client_disconnect ( iEntity )
{
	if ( is_user_bot ( iEntity ) || is_user_hltv ( iEntity ) )
		return;

	new pQuery [ 256 ];
	formatex ( pQuery, charsmax ( pQuery ), "DELETE * FROM `players_info` WHERE name='%s'", PlayerName [ iEntity ] );
	SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", pQuery );
}

public UpdateClientData ( iEntity )
{
	if ( is_user_connected ( iEntity ) )
	{
		static pQuery [ 256 ], pTeam [ 32 ];

		switch ( get_user_team ( iEntity ) )
		{
			case 1:	pTeam = "Terrorist";
			case 2:	pTeam = "Counter - Terrorist";
			case 3:	pTeam = "Spectator";
		}

		formatex ( pQuery, charsmax ( pQuery ), "UPDATE `players_info` SET ip='%s', kills='%d', deaths='%d', team='%s' WHERE name='%s'", PlayerIP [ iEntity ], get_user_frags ( iEntity ), cs_get_user_deaths ( iEntity ), pTeam, PlayerName [ iEntity ] );
		SQL_ThreadQuery ( MySQL_Server, "SQL_Ignore", pQuery );
	}
}

public SQL_Ignore ( FailState, Handle:Query, Error [ ], Errcode, Data [ ], DataSize )
{
	if ( FailState == TQUERY_CONNECT_FAILED )	set_fail_state ( "Failed to connect to mysql" );
	else if ( FailState == TQUERY_QUERY_FAILED )	set_fail_state ( "query failed" );
	else if ( Errcode )	log_amx ( "Error %s", Error );

	SQL_FreeHandle ( MySQL_Server );
}
poftim, gratis.

Code: Select all

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size:            692 bytes
Code size:             2428 bytes
Data size:            10600 bytes
Stack/heap size:      16384 bytes; estimated max. usage=784 cells (3136 bytes)
Total requirements:   30104 bytes
Done.
Shadows Adi
Membru, skill 0
Membru, skill 0
Posts: 0
Joined: 26 Jan 2020, 18:52
Detinator Steam: Da
CS Status: 0x416469
SteamID: shadowsadi120
Fond eXtream: 0
Has thanked: 14 times
Been thanked: 50 times

14 Mar 2021, 14:33

Salut,
Ti-am lasat un PM
Post Reply

Return to “Anunturi”

  • Information