[ZP] Points Shop - V 2.0.3

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

27 Jun 2015, 19:42

Descriere: Acesta este un SHOP pentru ZP cu punct.

Descarcare:
| Afiseaza codul
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fakemeta >
#include < fun >
#include < hamsandwich >
#include < zombieplague >


#define PLUGIN_NAME          "[ZP] Point's Shop"
#define PLUGIN_VERSION       "1.0"
#define PLUGIN_AUTHOR        "londoN"

native zd_set_user_points ( id, ppoints )
native zd_get_user_points ( id )
	
new const szTag [ ] = "ZP"
new g_msgSayText

new const g_File[ ] = "addons/amxmodx/configs/vips.ini"
new const g_szFile [ ] = "addons/amxmodx/configs/users.ini"

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	
	register_clcmd ( "shoppoints", "handler" )
	
	register_forward ( FM_ClientConnect, "fw_PlayerConnect", 1 )
	
	g_msgSayText = get_user_msgid ( "SayText" )
	
	set_task ( 60.0, "TaskAnnounce", _, _, _, "b" )
	
}

public TaskAnnounce ( )
{
	static id
	
	for ( id = 1; id < get_maxplayers ( ); id++ )
	{
		ColorChat ( id, "!x04[%s] !x03Push !x04N!x03 to open Point's Shop", szTag )
	}
}

public fw_PlayerConnect ( Client )
{
	if ( !is_user_bot ( Client ) || !is_user_hltv ( Client ) )
	{
		client_cmd ( Client, "bind ^"n^" ^"shoppoints^"" )
	}
}

public handler ( id )
{
	
	new menu = menu_create ( "\rNEWLIFEZM.AMICS.RO \w- \ySHOP", "shop" )
	
	menu_additem ( menu, "\wRESPAWN [ \r15 Points \w]", "1", 0 )
	menu_additem ( menu, "\w100 AMMO [ \r60 Points \w]", "2", 0 )
	menu_additem ( menu, "\w200 AMMO [ \r120 Points \w]", "3", 0 )
	menu_additem ( menu, "\wCOMPLETE PACK [ \r50 Points \w]", "4", 0)
	menu_additem ( menu, "\wGO TO HUMAN [ \r 25 Points \w]", "5", 0)
	menu_additem ( menu, "\wBUY VIP [ \r 2250 Points \w]", "6", 0)
	menu_additem ( menu, "\wBUY ADMIN [ \r4500 Points \w]", "7", 0)
	
	menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL )
	menu_display ( id, menu, 0 )
}

public shop ( id, menu, item )
{
	if ( item == MENU_EXIT )
	{
		menu_destroy ( menu )
		return PLUGIN_HANDLED;
	}
	
	new Points = zd_get_user_points ( id )
	
	new szName [ 32 ]
	get_user_name ( id, szName, charsmax ( szName ) )
	
	new Data[7], Name[64]
	new Access, Callback
	menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
	
	new key = str_to_num(Data)
	
	switch ( key )
	{
		case 1 :
		{
			if ( Points < 15 )
			{
				ColorChat ( id, "!x04[%s] !x03No Enough points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( is_user_alive ( id ) )
			{
				ColorChat ( id, "!x04[%s] !x03You are alive!", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( cs_get_user_team ( id ) == CS_TEAM_SPECTATOR )
			{
				return PLUGIN_CONTINUE;
			}
			
			
			ExecuteHam ( Ham_CS_RoundRespawn, id );
			ColorChat ( id, "!x04[%s] !x03You bought !x04respawn", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bouth respawn!", szName )
			
			zd_set_user_points ( id, Points - 15 )
		}
		
		case 2 :
		{
			if ( Points < 60 )
			{
				ColorChat ( id, "!x04[%s] !x03No Enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			zp_set_user_ammo_packs ( id, zp_get_user_ammo_packs ( id ) + 100 )
			ColorChat ( id, "!x04[%s] !x03You bought !x04100 packs!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bought 100 Ammo Packs!", szName )
			
			zd_set_user_points ( id, Points - 60 )
		}
		
		case 3 :
		{
			if ( Points < 120 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			zp_set_user_ammo_packs ( id, zp_get_user_ammo_packs ( id ) + 200 )
			ColorChat ( id, "!x04[%s] !x03You bought !x04200 packs!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bought 200 Ammo Packs!", szName )
			
			zd_set_user_points ( id, Points - 120 )
		}
		
		
		case 4 :
		{
			if ( Points < 50 )
			{
				ColorChat ( id, "!x04[%s] !x03No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( zp_get_user_zombie ( id ) )
			{
				ColorChat ( id, "!x04[%s] !x03You must be human", szTag )
				return PLUGIN_CONTINUE;
			}
			
			strip_user_weapons ( id )
			give_item ( id, "weapon_knife" )
			give_item ( id, "weapon_deagle" )
			give_item ( id, "weapon_ak47" )
			give_item ( id, "weapon_m4a1" )
			give_item ( id, "weapon_smokegrenade" )
			give_item ( id, "weapon_flashbang" )
			give_item ( id, "weapon_flashbang" )
			give_item ( id, "weapon_hegrenade" )
			cs_set_user_bpammo ( id, CSW_AK47, 90 )
			cs_set_user_bpammo ( id, CSW_M4A1, 90 )
			cs_set_user_bpammo ( id, CSW_DEAGLE, 90 )
			set_user_health ( id, 150 )
			set_user_armor ( id, 200 )
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04Complete pack!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bouth Complete Pack!", szName )
			
			zd_set_user_points ( id, Points - 50 )
		}
		
		case 5 :
		{
			if ( Points < 25 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( zp_get_user_zombie ( id ) && !zp_is_survivor_round ( ) &&  !zp_is_nemesis_round ( ) )
			{
				
				server_cmd ( "zp_human %s", szName )
				
				ColorChat ( id, "!x04[%s]!x03 You turned to a human", szTag )
				
				set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
				show_hudmessage( id, "%s turned back to a human!", szName )
				
				zd_set_user_points ( id, Points - 25 )
			}
		}
		
		case 6 :
		{
			
			if ( Points < 2250 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			new r [ 5 ]
			formatex ( r, charsmax ( r ), "%c%c%c", random_num('a', 'z'), random_num('0', '5'), random_num('b', 'h'))
			
			new szBuffer [ 512 ];
			formatex ( szBuffer, charsmax ( szBuffer ), " ^"%s^" ^"%s^" ^"abde^" ^"ab^"", szName, r  );
			
			write_file ( g_File, szBuffer )
			
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04VIP!x03!", szTag )
			ColorChat ( id, "!x04[%s] !x03Your Name: !x04%s!x03 | Your Password: !x04: %s", szTag, szName, r )
			ColorChat ( id, "!x04[%s] !x03At map change !x04VIP !x03will be active", szTag )
			
			zd_set_user_points ( id, Points - 2250 )
		}
		
		case 7 :
		{
			
			if ( Points < 4500 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			new a [ 5 ]
			formatex ( a, charsmax ( a ), "%c%c%c", random_num ( 'A', 'Z' ), random_num ( 'a', 'z' ), random_num ( '0', '9' ) )
			
			new szBuffer [ 512 ];
			formatex ( szBuffer, charsmax ( szBuffer ), "^"%s^" ^"%s^" ^"bcefghi^" ^"a^"", szName, a  );
			
			write_file ( g_szFile, szBuffer )
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04ADMIN!x03!", szTag )
			ColorChat ( id, "!x04[%s] !x03You Name: !x04%s !x03| Your Password: !x04%s", szTag, szName, a )
			ColorChat ( id, "!x04[%s] !x03At map change !x04ADMIN !x03will be active", szTag )
			
			zd_set_user_points ( id, Points - 4500 )
			
		}
		
		
	}
	
	return PLUGIN_HANDLED;
}

stock ColorChat(const id, const input[], any:...) {
	new count = 1, players[32];
	static msg[191];
	vformat(msg, 190, input, 3);
	
	replace_all(msg, 190, "!x04", "^4");
	replace_all(msg, 190, "!x03", "^3");
	
	if(id) players[0] = id;
	else get_players(players, count, "ch"); {
		for(new i = 0; i < count; i++) {
			if(is_user_connected(players)) {
				message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players);
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}

Nume: [ZP] Points Shop
Versiune: 2.0.3 AIO BETA
Autori: londoN // credite hades
Link oficial:aici

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

Code: Select all

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

Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):
Nu sunt

Comenzi publice (se tasteaza in joc prin apasarea tastei Y):
nu sunt

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
- cstrike
- hamsandwich
- fakemeta
- fun

Imagini:
Image
Last edited by LondoN eXtream on 27 Jun 2015, 19:53, edited 1 time in total.
RoyalServer 2
User avatar
Dumitru.
Membru, skill 0
Membru, skill 0
Posts: 51
Joined: 20 Jun 2015, 23:49
Detinator Steam: Da
Detinator server CS: Da
SteamID: dumy.
Fond eXtream: 0
Location: Timișoara

27 Jun 2015, 19:47

Mulțumim ! îl voi testa eu .
User avatar
ZoRkEn[$]
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 208
Joined: 14 Feb 2015, 18:23
Detinator Steam: Da
Reputatie: Utilizator neserios ( tepar )
Fond eXtream: 0

27 Jun 2015, 19:49

frumusel plg bv
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

27 Jun 2015, 19:52

Multumesc, pluginul ruleaza pe serverul meu, 0 bug-uri, in caz de mai apar nu ezitati sa postati
User avatar
@Nonamed
Membru, skill +3
Membru, skill +3
Posts: 1373
Joined: 05 Dec 2014, 15:26
Detinator Steam: Da
CS Status: Nu am
Detinator server CS: Nu am
SteamID: Nu am
Fond eXtream: 0
Location: Bacău

27 Jun 2015, 19:55

Frumos plugin nai ce spune la mai multe.
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

27 Jun 2015, 20:19

Multumesc, alte pareri? :D
iDanEz
Membru, skill 0
Membru, skill 0
Posts: 14
Joined: 23 Nov 2018, 12:36
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Discord: skrpt_
Contact:

13 Dec 2018, 19:58

Cum fac să apară punctele acolo unde scrie ammo packs și etc + cum adaug în meniul principal pe ZPA (Zombie Plague Advance)?
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

14 Dec 2018, 22:23

Totul se modifica in zombie_plague_advanced.sma
zm_nizan10
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 02 Mar 2019, 11:26
Detinator Steam: Nu
CS Status: Legends of newlifezm
Detinator server CS: zm.wtfcs.com
Fond eXtream: 0

02 Mar 2019, 12:59

Code: Select all

if(is_user_connected(players)) {
				message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players);
				write_byte(players);
Error: Argument type mismatch (argument 1) on line 283
Error: Argument type mismatch (argument 4) on line 284
Error: Argument type mismatch (argument 1) on line 285

ma ajuta cineva ?
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

02 Mar 2019, 15:20

de la update-ul ăsta minunat s-au stricat și bbcode-urile

Code: Select all

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fakemeta >
#include < fun >
#include < hamsandwich >
#include < zombieplague >


#define PLUGIN_NAME          "[ZP] Point's Shop"
#define PLUGIN_VERSION       "1.0"
#define PLUGIN_AUTHOR        "londoN"

native zd_set_user_points ( id, ppoints )
native zd_get_user_points ( id )
	
new const szTag [ ] = "ZP"
new g_msgSayText

new const g_File[ ] = "addons/amxmodx/configs/vips.ini"
new const g_szFile [ ] = "addons/amxmodx/configs/users.ini"

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	
	register_clcmd ( "shoppoints", "handler" )
	
	register_forward ( FM_ClientConnect, "fw_PlayerConnect", 1 )
	
	g_msgSayText = get_user_msgid ( "SayText" )
	
	set_task ( 60.0, "TaskAnnounce", _, _, _, "b" )
	
}

public TaskAnnounce ( )
{
	static id
	
	for ( id = 1; id < get_maxplayers ( ); id++ )
	{
		ColorChat ( id, "!x04[%s] !x03Push !x04N!x03 to open Point's Shop", szTag )
	}
}

public fw_PlayerConnect ( Client )
{
	if ( !is_user_bot ( Client ) || !is_user_hltv ( Client ) )
	{
		client_cmd ( Client, "bind ^"n^" ^"shoppoints^"" )
	}
}

public handler ( id )
{
	
	new menu = menu_create ( "\rNEWLIFEZM.AMICS.RO \w- \ySHOP", "shop" )
	
	menu_additem ( menu, "\wRESPAWN [ \r15 Points \w]", "1", 0 )
	menu_additem ( menu, "\w100 AMMO [ \r60 Points \w]", "2", 0 )
	menu_additem ( menu, "\w200 AMMO [ \r120 Points \w]", "3", 0 )
	menu_additem ( menu, "\wCOMPLETE PACK [ \r50 Points \w]", "4", 0)
	menu_additem ( menu, "\wGO TO HUMAN [ \r 25 Points \w]", "5", 0)
	menu_additem ( menu, "\wBUY VIP [ \r 2250 Points \w]", "6", 0)
	menu_additem ( menu, "\wBUY ADMIN [ \r4500 Points \w]", "7", 0)
	
	menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL )
	menu_display ( id, menu, 0 )
}

public shop ( id, menu, item )
{
	if ( item == MENU_EXIT )
	{
		menu_destroy ( menu )
		return PLUGIN_HANDLED;
	}
	
	new Points = zd_get_user_points ( id )
	
	new szName [ 32 ]
	get_user_name ( id, szName, charsmax ( szName ) )
	
	new Data[7], Name[64]
	new Access, Callback
	menu_item_getinfo(menu, item, Access, Data, 5, Name, 63, Callback)
	
	new key = str_to_num(Data)
	
	switch ( key )
	{
		case 1 :
		{
			if ( Points < 15 )
			{
				ColorChat ( id, "!x04[%s] !x03No Enough points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( is_user_alive ( id ) )
			{
				ColorChat ( id, "!x04[%s] !x03You are alive!", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( cs_get_user_team ( id ) == CS_TEAM_SPECTATOR )
			{
				return PLUGIN_CONTINUE;
			}
			
			
			ExecuteHam ( Ham_CS_RoundRespawn, id );
			ColorChat ( id, "!x04[%s] !x03You bought !x04respawn", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bouth respawn!", szName )
			
			zd_set_user_points ( id, Points - 15 )
		}
		
		case 2 :
		{
			if ( Points < 60 )
			{
				ColorChat ( id, "!x04[%s] !x03No Enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			zp_set_user_ammo_packs ( id, zp_get_user_ammo_packs ( id ) + 100 )
			ColorChat ( id, "!x04[%s] !x03You bought !x04100 packs!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bought 100 Ammo Packs!", szName )
			
			zd_set_user_points ( id, Points - 60 )
		}
		
		case 3 :
		{
			if ( Points < 120 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			zp_set_user_ammo_packs ( id, zp_get_user_ammo_packs ( id ) + 200 )
			ColorChat ( id, "!x04[%s] !x03You bought !x04200 packs!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bought 200 Ammo Packs!", szName )
			
			zd_set_user_points ( id, Points - 120 )
		}
		
		
		case 4 :
		{
			if ( Points < 50 )
			{
				ColorChat ( id, "!x04[%s] !x03No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( zp_get_user_zombie ( id ) )
			{
				ColorChat ( id, "!x04[%s] !x03You must be human", szTag )
				return PLUGIN_CONTINUE;
			}
			
			strip_user_weapons ( id )
			give_item ( id, "weapon_knife" )
			give_item ( id, "weapon_deagle" )
			give_item ( id, "weapon_ak47" )
			give_item ( id, "weapon_m4a1" )
			give_item ( id, "weapon_smokegrenade" )
			give_item ( id, "weapon_flashbang" )
			give_item ( id, "weapon_flashbang" )
			give_item ( id, "weapon_hegrenade" )
			cs_set_user_bpammo ( id, CSW_AK47, 90 )
			cs_set_user_bpammo ( id, CSW_M4A1, 90 )
			cs_set_user_bpammo ( id, CSW_DEAGLE, 90 )
			set_user_health ( id, 150 )
			set_user_armor ( id, 200 )
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04Complete pack!", szTag )
			
			set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
			show_hudmessage( id, "%s bouth Complete Pack!", szName )
			
			zd_set_user_points ( id, Points - 50 )
		}
		
		case 5 :
		{
			if ( Points < 25 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			if ( zp_get_user_zombie ( id ) && !zp_is_survivor_round ( ) &&  !zp_is_nemesis_round ( ) )
			{
				
				server_cmd ( "zp_human %s", szName )
				
				ColorChat ( id, "!x04[%s]!x03 You turned to a human", szTag )
				
				set_hudmessage( 127, 255, 255, 0.31, 0.75, 0, 6.0, 1.0 )
				show_hudmessage( id, "%s turned back to a human!", szName )
				
				zd_set_user_points ( id, Points - 25 )
			}
		}
		
		case 6 :
		{
			
			if ( Points < 2250 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			new r [ 5 ]
			formatex ( r, charsmax ( r ), "%c%c%c", random_num('a', 'z'), random_num('0', '5'), random_num('b', 'h'))
			
			new szBuffer [ 512 ];
			formatex ( szBuffer, charsmax ( szBuffer ), " ^"%s^" ^"%s^" ^"abde^" ^"ab^"", szName, r  );
			
			write_file ( g_File, szBuffer )
			
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04VIP!x03!", szTag )
			ColorChat ( id, "!x04[%s] !x03Your Name: !x04%s!x03 | Your Password: !x04: %s", szTag, szName, r )
			ColorChat ( id, "!x04[%s] !x03At map change !x04VIP !x03will be active", szTag )
			
			zd_set_user_points ( id, Points - 2250 )
		}
		
		case 7 :
		{
			
			if ( Points < 4500 )
			{
				ColorChat ( id, "!x04[%s]!x03 No enought points", szTag )
				return PLUGIN_CONTINUE;
			}
			
			new a [ 5 ]
			formatex ( a, charsmax ( a ), "%c%c%c", random_num ( 'A', 'Z' ), random_num ( 'a', 'z' ), random_num ( '0', '9' ) )
			
			new szBuffer [ 512 ];
			formatex ( szBuffer, charsmax ( szBuffer ), "^"%s^" ^"%s^" ^"bcefghi^" ^"a^"", szName, a  );
			
			write_file ( g_szFile, szBuffer )
			
			ColorChat ( id, "!x04[%s] !x03You bought !x04ADMIN!x03!", szTag )
			ColorChat ( id, "!x04[%s] !x03You Name: !x04%s !x03| Your Password: !x04%s", szTag, szName, a )
			ColorChat ( id, "!x04[%s] !x03At map change !x04ADMIN !x03will be active", szTag )
			
			zd_set_user_points ( id, Points - 4500 )
			
		}
		
		
	}
	
	return PLUGIN_HANDLED;
}

stock ColorChat(const id, const input[], any:...) {
	new count = 1, players[32],msg[195];
	vformat(msg, charsmax(msg), input, 3);
	
	replace_all(msg, charsmax(msg), "!x04", "^4");
	replace_all(msg, charsmax(msg), "!x03", "^3");
	replace_all(msg, charsmax(msg), "!x01", "^1");
	replace_all(msg, charsmax(msg), "!x00", "^0");
	
	if(id) players[0] = id;
	else get_players(players, count, "c");
	
	for(new i = 0; i < count; i++) {
		if(is_user_connected(players[i])) {
			message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players[i]);
			write_byte(players[i]);
			write_string(msg);
			message_end();
		}
	}
}
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: Mail.RU [Bot] and 4 guests