Nevoie de un plugin sistem de puncte !

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
miber
Membru, skill +4
Membru, skill +4
Posts: 1993
Joined: 09 Apr 2013, 02:43
Detinator Steam: Da
CS Status: Web Designer.
SteamID: mibfx
Location: rootem
Has thanked: 50 times
Been thanked: 110 times
Contact:

11 Dec 2013, 23:55

Stiu ca poate nu sunt in categoria corespunzatoare, dar daca faceam cerere la el nu mil facea nimeni gratis plus ca stiu ca exista unul gratis din ce cer eu.

In primul rand am nevoie de un plugin cu system de puncte pentru un server de respawn.

In ce consta acest plugin, pai de ex: Eu omor un player si primesc automat un numar de puncte(stabilit de mine in .sma sau amxx.cfg ), acele puncte sa se contorizeze, nu am nevoie de top pentru puncte eu vreau doar systemul simplu nu am nevoie de ceva complicat, tot am cautat pe net dar ce am gasit eu nu este deloc ce imi doresc eu plus ca imi da crash la server acel plugin, poate stiti voi vrunu si aveti bunavointa sa mi-l da-ti si mie, multumesc frumos.
Last edited by miber on 12 Dec 2013, 12:53, edited 1 time in total.
M-am lasat, is pensionar pe caz de boala, acum ma tratez cu Mari pana dau de Ioana.

Image
Rapidserver
User avatar
Bananee.
Membru eXtream
Membru eXtream
Posts: 2498
Joined: 06 Oct 2009, 14:04
Detinator Steam: Da
SteamID: kiduu407
Reputatie: Membru Club eXtreamCS (2 luni)
Nume anterior: EL Shaarawy, KiduuuTz
Fost Moderator ajutator
Location: Pe balta.
Has thanked: 386 times
Been thanked: 152 times

12 Dec 2013, 07:55

Mutat in cereri.
Ca sa intelegi ca esti prost, trebuie totusi sa-ti mearga mintea. - George Brassens.
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 21:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 335 times
Been thanked: 570 times
Contact:

12 Dec 2013, 11:34

miber wrote:Stiu ca poate nu sunt in categoria corespunzatoare, dar daca faceam cerere la el nu mil facea nimeni gratis plus ca stiu ca exista unul gratis din ce cer eu.

In primul rand am nevoie de un plugin cu system de puncte pentru un server de respawn.

In ce consta acest plugin, pai de ex: Eu omor un player si primesc automat un numar de puncte(stabilit de mine in .sma sau amxx.cfg ), acele puncte sa se contorizeze, nu am nevoie de top pentru puncte eu vreau doar systemul simplu nu am nevoie de ceva complicat, tot am cautat pe net dar ce am gasit eu nu este deloc ce imi doresc eu plus ca imi da crash la server acel plugin, poate stiti voi vrunu si aveti bunavointa sa mi-l da-ti si mie, multumesc frumos.
In primul rand, editeaza titlul pentru ca nu reflecta continutul topicului.
In al doilea rand, da-mi mai multe detalii, sa se salveze acele puncte?
Ti-l fac eu, doar astept mai multe detalii.
Retras
User avatar
miber
Membru, skill +4
Membru, skill +4
Posts: 1993
Joined: 09 Apr 2013, 02:43
Detinator Steam: Da
CS Status: Web Designer.
SteamID: mibfx
Location: rootem
Has thanked: 50 times
Been thanked: 110 times
Contact:

12 Dec 2013, 12:52

Multumesc cruyff ca vrei sa ma ajuti.

Deci sa iti dau detalii

In primul rand vreau sistem de puncte pe kill-uri:
1 kill = 2 puncte
1 kill prin hs = 3 puncte
( nu vreau ceva complex eu vreau sa se acumuleze in nvault )
Cu toate ca nu vreau ceva complex imi trebuie o comanda /points prin care sa arate totalul punctelor al playerului respectiv ( un gen cum este la /rank )


Plugin-ul l-am mai vazut pe anumite servere de respawn, dar nu l-am gasit nicaieri pe google si la scripting nu ma pricep eu incat sa il fac, daca ma pricepeam il faceam.

Sper ca ai inteles ce doresc eu.

Multumesc pentru ajutor.
M-am lasat, is pensionar pe caz de boala, acum ma tratez cu Mari pana dau de Ioana.

Image
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 21:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 335 times
Been thanked: 570 times
Contact:

12 Dec 2013, 14:16

| Afiseaza codul
#include < amxmodx >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
const KILL_POINTS = 2;
const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg( )
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Nu am testat.
Retras
User avatar
alkaline
Fost moderator
Fost moderator
Posts: 733
Joined: 18 Jul 2012, 08:42
Detinator Steam: Da
Reputatie: Fost Moderator ajutator
Nume anterior: lucylucy
Fond eXtream: 0
Location: Caras-Severin
Has thanked: 5 times
Been thanked: 296 times
Contact:

12 Dec 2013, 15:05

am eu un sistem de points facut/editat de mine ...Da-mi add
| Afiseaza codul
lucy_metin2lca@yahoo.com
daca-l vrei free
ImageImage
User avatar
YONTU
Moderator ajutator
Moderator ajutator
Posts: 2446
Joined: 10 May 2013, 13:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 255 times
Been thanked: 281 times
Contact:

12 Dec 2013, 16:05

Cand te vad lucy... :)) !
Maine il voi publica! Trebuie doar sa.i mai adaug niste chestioare si sa mai fac niste poze. Are im jur de 800 de linii.
:)
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

discord: IonutC#5114

Vrei sa joci pe un server de biohazard clasic specific timpurilor 2008-2012?
CLICK | Afiseaza codul
89.44.246.14:27015 biohazard clasic
User avatar
miber
Membru, skill +4
Membru, skill +4
Posts: 1993
Joined: 09 Apr 2013, 02:43
Detinator Steam: Da
CS Status: Web Designer.
SteamID: mibfx
Location: rootem
Has thanked: 50 times
Been thanked: 110 times
Contact:

12 Dec 2013, 20:03

cruyff wrote:
| Afiseaza codul
#include < amxmodx >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
const KILL_POINTS = 2;
const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg( )
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Nu am testat.
Multumesc frumos cruyff, o sa il testez si o sa iti spun daca merge, nu inchideti topic-ul va rog frumos, multumesc.

Din pacate plugin-ul merge, dar nu contorizeaza punctele chiar daca dau kill normal sau hs nu imi da punctele.
Si daca se poate ca am uitat sa precizez sa imi spuna in chat cand omor cate puncte am primit adica ex:

Code: Select all

Ai primit 1 punct pentru ca l-ai omarat pe X-ulescu.
M-am lasat, is pensionar pe caz de boala, acum ma tratez cu Mari pana dau de Ioana.

Image
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:

13 Dec 2013, 14:21

miber wrote:
cruyff wrote:
| Afiseaza codul
#include < amxmodx >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
const KILL_POINTS = 2;
const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg( )
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Nu am testat.
Multumesc frumos cruyff, o sa il testez si o sa iti spun daca merge, nu inchideti topic-ul va rog frumos, multumesc.

Din pacate plugin-ul merge, dar nu contorizeaza punctele chiar daca dau kill normal sau hs nu imi da punctele.
Si daca se poate ca am uitat sa precizez sa imi spuna in chat cand omor cate puncte am primit adica ex:

Code: Select all

Ai primit 1 punct pentru ca l-ai omarat pe X-ulescu.
| Afiseaza codul
#include < amxmodx >
#include < colorchat >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
new const KILL_POINTS = 2;
new const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg(id)
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
			ColorChat(id, GREEN, "[AMXX]^x03 Ai primit %i puncte pentru ca l-ai omorat pe %s !", KILL_POINTS, iVictim)
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
			ColorChat(id, GREEN, "[AMXX]^x03 Ai primit %i puncte pentru ca l-ai omorat pe %s !", HS_POINTS, iVictim)
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Vezi acum ;))

>> colorchat.inc <<
User avatar
YONTU
Moderator ajutator
Moderator ajutator
Posts: 2446
Joined: 10 May 2013, 13:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 255 times
Been thanked: 281 times
Contact:

13 Dec 2013, 17:10

Uite un plugin de puncte: Click !
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

discord: IonutC#5114

Vrei sa joci pe un server de biohazard clasic specific timpurilor 2008-2012?
CLICK | Afiseaza codul
89.44.246.14:27015 biohazard clasic
User avatar
miber
Membru, skill +4
Membru, skill +4
Posts: 1993
Joined: 09 Apr 2013, 02:43
Detinator Steam: Da
CS Status: Web Designer.
SteamID: mibfx
Location: rootem
Has thanked: 50 times
Been thanked: 110 times
Contact:

13 Dec 2013, 18:30

GhosT *** wrote:
miber wrote:
cruyff wrote:
| Afiseaza codul
#include < amxmodx >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
const KILL_POINTS = 2;
const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg( )
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Nu am testat.
Multumesc frumos cruyff, o sa il testez si o sa iti spun daca merge, nu inchideti topic-ul va rog frumos, multumesc.

Din pacate plugin-ul merge, dar nu contorizeaza punctele chiar daca dau kill normal sau hs nu imi da punctele.
Si daca se poate ca am uitat sa precizez sa imi spuna in chat cand omor cate puncte am primit adica ex:

Code: Select all

Ai primit 1 punct pentru ca l-ai omarat pe X-ulescu.
| Afiseaza codul
#include < amxmodx >
#include < colorchat >
#include < nvault >

#define PLUGIN_NAME "Points system"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "cruyff"

/* */
new const KILL_POINTS = 2;
new const HS_POINTS = 3;
/* */

new g_PlayerPoints[ 33 ];
new g_Vault;

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	/* Event */
	register_event( "DeathMsg", "Func_DeathMsg", "be" );
	
	/* Vault */
	g_Vault = nvault_open( "system_points" );
	
	/* ClCmd */
	register_clcmd( "say /points", "Func_Points" );
}

public Func_DeathMsg(id)
{
	new iKiller = read_data( 1 );
	new iVictim = read_data( 2 );
	
	if( iKiller != iVictim )
	{
		if( !( read_data( 3 ) ) )
		{
			g_PlayerPoints[ iKiller ] += KILL_POINTS;
			ColorChat(id, GREEN, "[AMXX]^x03 Ai primit %i puncte pentru ca l-ai omorat pe %s !", KILL_POINTS, iVictim)
		}
		
		else
		{
			g_PlayerPoints[ iKiller ] += HS_POINTS;
			ColorChat(id, GREEN, "[AMXX]^x03 Ai primit %i puncte pentru ca l-ai omorat pe %s !", HS_POINTS, iVictim)
		}
	}
}

public Func_Points( id )
{
	client_print( id, print_chat, "Ai %i puncte.", g_PlayerPoints[ id ] );
}

public client_putinserver( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_get( g_Vault, szVaultKey, szVaultData, sizeof( szVaultData ) -1 );
	
	new szParsedPoints[ 33 ];
	parse( szVaultData,\
		szParsedPoints, sizeof( szParsedPoints ) -1 );
	
	g_PlayerPoints[ id ] = str_to_num( szParsedPoints );
}

public client_disconnect( id )
{
	new szVaultData[ 512 ], szVaultKey[ 32 ], szName[ 32 ];
	get_user_name( id, szName, sizeof( szName ) -1 );
	
	formatex( szVaultKey, sizeof( szVaultKey ) -1, "%s", szName );
	formatex( szVaultData, sizeof( szVaultData ) -1, "%i", g_PlayerPoints[ id ] );
	
	nvault_set( g_Vault, szVaultKey, szVaultData );
}
Vezi acum ;))

>> colorchat.inc <<
Din pacate nu functioneaza, el apare ca functineaza in amx_plugins dar daca omor nu da punctele si nici mesajul si nici nu le contorizeaza.
M-am lasat, is pensionar pe caz de boala, acum ma tratez cu Mari pana dau de Ioana.

Image
User avatar
YONTU
Moderator ajutator
Moderator ajutator
Posts: 2446
Joined: 10 May 2013, 13:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 255 times
Been thanked: 281 times
Contact:

13 Dec 2013, 18:32

YONTU wrote:Uite un plugin de puncte: Click !
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

discord: IonutC#5114

Vrei sa joci pe un server de biohazard clasic specific timpurilor 2008-2012?
CLICK | Afiseaza codul
89.44.246.14:27015 biohazard clasic
Post Reply

Return to “Cereri”

  • Information