[CS:GO REMAKE] CSGO Classy by renegade

Descarcari de addons-uri si discutii despre acestea.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 976
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 100 times
Been thanked: 28 times
Contact:

07 Aug 2021, 16:03

Descriere: Un addons cs 1.6 cs:go remake classic
Autor: renegade
Versiune: 1.0
Descarcare: https://www.mediafire.com/file/03itvtbu ... y.rar/file
Pluginuri:
csgoclassybots.amxx
csgoclassychat.amxx
csgoclassyesp.amxx
csgoclassygag.amxx
csgoclassygraffiti.amxx
csgoclassyhide.amxx
csgoclassyinspect.amxx
csgoclassyowner.amxx
csgoclassyphysics.amxx
csgoclassyquests.amxx
csgoclassyrestmenu.amxx
csgoclassysounds.amxx
csgoclassyss.amxx
csgoclassystatscfg.amxx
csgoclassystatsx.amxx
csgoclassyvip.amxx
csgoclassy.amxx
csgoclassyadmin.amxx
csgoclassyadminchat.amxx
csgoclassyadmincmd.amxx
csgoclassyamxwho.amxx
csgoclassyargumentsblocker.amxx
csgoclassybans.amxx
csgoclassybase.amxx
csgoclassybody.amxx


pentru domnul C.Arthur , uite cateva link-uri unde modelul nu este complet / corespunzator :
addon-uri/zombie-plague-cso-system-priv ... 72276.html
addon-uri/addons-respawn-t372226.html
addon-uri/addons-zorken-sma-t371573.html
addon-uri/addons-zombie-plague-cso-t369098.html
addon-uri/addons-classy-renegade-t372055.html PANA SI O VERSIUNE A ACESTUI ADDONS ESTE POSTATA AICI SI NU I-A FOST DUS LA COS TOPICUL.
Si asa mai departe, astept sa te uiti la absolut toata categoria 'Addons-uri' si sa dai cos la toate topicurile ce nu respecta cerintele.
lexz
Membru, skill +1
Membru, skill +1
Posts: 186
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Detinator server CS: CSGO.WARFACE.RO
SteamID: profiles/76561198070
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 11 times
Been thanked: 23 times

07 Aug 2021, 17:56

normal ca mi-au mutat topicul :)) bine ca l-ai pus ca nu-l mai puneam.

flagurile de la pluginul de admin:

Code: Select all

new g_groupNames[MAX_GROUPS][] = 
{
"|--[Founder]--|",
"[1] Manager",
"[2] Owner",
"[3] Co-Owner",
"[4] Veteran",
"[5] Administrator",
"[6] Super-Moderator",
"[7] Moderator",
"[8] Helper",
"[9] VIP",
"[10] Slot"
}

new g_groupFlags[MAX_GROUPS][] = 
{
"abcdefghijklmnopqrsuxy",
"abcdefghijklmnopqrsux",
"bcdefghijklmnopqrsu",
"bcdefghijmnopqsu",
"bcdefghijmnopqs",
"bcdefgijmnpq",
"bcdefgijmn",
"bcdefgijm",
"bcdefgij",
"t",
"b"
}

new g_groupFlagsVIP[MAX_GROUPS][] = 
{
"abcdefghijklmnopqrstuxy",
"abcdefghijklmnopqrstux",
"bcdefghijklmnopqrsut",
"bcdefghijmnopqsut",
"bcdefghijmnopqst",
"bcdefgijmnpqt",
"bcdefgijmnt",
"bcdefgijmt",
"bcdefgijt",
"it",
"bt"
}
si mai lasati basinile astea de moderatori imi muti tu topicul ca nu e facut dupa model apuca-te in *** si fa tot forumul atunci :)))
Last edited by The Kalu on 07 Aug 2021, 18:18, edited 1 time in total.
Reason: Limbaj, data viitoare s-ar putea sa ai pauza pe minim 3 luni ca nu suntem obligați sa va acceptam comportamentul vostru.
lexz
Membru, skill +1
Membru, skill +1
Posts: 186
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Detinator server CS: CSGO.WARFACE.RO
SteamID: profiles/76561198070
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 11 times
Been thanked: 23 times

09 Aug 2021, 04:06

In cazul in care vrea cineva sa nu foloseasca csgoclassybase.amxx, aveti mai jos un plugin care adauga comenzile de donate (/donatescraps, /donatemoney.. etc) + niste sunete pe care am uitat sa le adaug.

https://www.mediafire.com/file/lda8gb3j ... e.rar/file
lexz
Membru, skill +1
Membru, skill +1
Posts: 186
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Detinator server CS: CSGO.WARFACE.RO
SteamID: profiles/76561198070
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 11 times
Been thanked: 23 times

06 Oct 2021, 11:15

un plugin bonus box cand omori pe cineva.

Code: Select all

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < engine >
#include < fakemeta >
#include < fakemeta_util >
#include < fun >
#include < hamsandwich >

#define PLUGIN "BonusBox"
#define VERSION "1.0"
#define AUTHOR "SkepT Jr."

new const iTag[] = "^4[^3CSGO^4]^1"
new const ClassName [ ] = "BonusBox"
new models_box [] = {	
	"models/csgoclassy_case/csgoclassy_case.mdl"
};


const UNIT_SEC = 0x1000;
const FFADE = 0x0000;

#define FFADE_IN		0x0000		
#define FFADE_OUT		0x0001		
#define FFADE_MODULATE		0x0002		
#define FFADE_STAYOUT		0x0004	
#define SPEEDBOX 		600.0	

native set_user_scraps(id, value)
	native set_user_money(id, value)
	native set_user_keys(id, value)
	native set_user_cases(id, value)
	native get_user_scraps(id)
	native get_user_money(id)
	native get_user_keys(id)
	native get_user_cases(id)
	native is_user_logged(id)
	

public plugin_init ( ) {
	
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	register_event ( "DeathMsg", "eDeath", "a" );
	register_forward ( FM_PlayerPreThink, "ForcePlayerSpeed" );
	register_forward ( FM_Touch, "Touch" );
	
	register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
	// Add your code here...
}

public Event_HLTV_New_Round()
{
    remove_entity_name(ClassName);
} 

public plugin_precache() {
	for(new i; i < sizeof (models_box) ; i++)
		precache_model(models_box)
}

public give_bonus2(id)
{
	bonus_box(id)
}

public eDeath ( ) {
	
	new iKiller = read_data (1);
	new iVictim = read_data (2);
	new iRandom = random_num(1, 10);
	
	if ( iKiller == iVictim ) {
		
		return PLUGIN_HANDLED;
		
	}
	
	if(iRandom > 9)
		bonus_box (iVictim);
	else
		return PLUGIN_HANDLED
	
	return PLUGIN_CONTINUE;
}



public bonus_box ( id ) {
	
	if ( is_user_connected ( id ) && cs_get_user_team ( id ) != CS_TEAM_SPECTATOR ) {
		
		new Ent = fm_create_entity ( "info_target" );
		new Origin [ 3 ];
		get_user_origin ( id, Origin, 0 );
		set_pev ( Ent, pev_classname, ClassName )
		
		engfunc ( EngFunc_SetModel, Ent, models_box [0] );
		
		set_pev ( Ent, pev_mins, Float: { -10.0,-10.0,0.0 } );
		set_pev ( Ent, pev_maxs, Float: { 10.0,10.0,25.0 } );
		set_pev ( Ent, pev_size, Float: { -10.0,-10.0,0.0,10.0,10.0,25.0 } ); 
		engfunc ( EngFunc_SetSize, Ent, Float: { -10.0, -10.0, 0.0 }, Float: { 10.0, 10.0, 25.0 } );
		
		set_pev ( Ent,pev_solid, SOLID_BBOX );
		set_pev ( Ent,pev_movetype, MOVETYPE_TOSS );
		
		new Float: fOrigin [ 3 ];
		IVecFVec ( Origin, fOrigin );
		set_pev ( Ent, pev_origin, fOrigin );
		
	}
	
}

public Touch ( toucher, touched )
{
	
	if ( !is_user_alive( toucher ) || !pev_valid( touched ) )
		return FMRES_IGNORED;
	
	new classname [ 32 ];    
	pev( touched, pev_classname, classname, 31 );
	
	if (!equal( classname, ClassName ) )
		return FMRES_IGNORED;
	
	set_pev ( touched, pev_effects, EF_NODRAW );
	set_pev ( touched, pev_solid, SOLID_NOT );
	
	if (!remove_entity( touched ))
		return FMRES_IGNORED;
	
	if(is_user_logged(toucher) == 1)
	{
		give_bonus( toucher );
	}
	else
	{
		client_print_color(toucher, print_team_default, "%s You have to be logged in to get this bonus!", iTag)
		remove_entity( touched )
	}
	
	return FMRES_IGNORED;  
}

public give_bonus ( id )
{
	new iRandom, iChance
	
	iRandom = random_num(0,5)
	
	new iRandomBonus, iMoney[MAX_PLAYERS + 1], iCases[MAX_PLAYERS + 1], iKeys[MAX_PLAYERS + 1], iScraps[MAX_PLAYERS + 1]
	
	switch(iRandom)
	{
		case 0:
		{
			iMoney[id] = get_user_money(id)			
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iMoney[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 money^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_money(id, iMoney[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_money(id, iMoney[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 1:	
		{
			iCases[id] = get_user_cases(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,3)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				
				iRandomBonus *= -1
				
				if (iCases[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 cases^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_cases(id, iCases[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_cases(id, iCases[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 2:
		{
			iKeys[id] = get_user_keys(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iKeys[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 keys^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_keys(id, iKeys[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_keys(id, iKeys[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 3:
		{
			iScraps[id] = get_user_scraps(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,8)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iScraps[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 scraps^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_scraps(id, iScraps[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_scraps(id, iScraps[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 4:
		{
			if(is_user_alive(id))
			{
				new iRandomHP, iRandomAM
				
				iRandomHP = random_num(1,20)
				iRandomAM = random_num(1,20)
				
				set_user_health(id, get_user_health(id) + iRandomHP)
				set_user_armor(id, get_user_armor(id) + iRandomAM)
				
				client_print_color(id, print_team_default, "%s You got^4 %i Health^1 and^4 %i Armor^1.", iTag,iRandomHP, iRandomAM)
			}
			else
				return PLUGIN_HANDLED
		}
		
		case 5: 
		{
			if(is_user_alive(id))
			{
				set_user_gravity(id, 0.6)
				client_print_color(id, print_team_default, "%s You got^4 lower gravity^1, but only for this round!", iTag)
			}
			else
				return PLUGIN_HANDLED
		}
	}
	
	return PLUGIN_CONTINUE
}
model: https://www.mediafire.com/file/9yva9fbw ... e.rar/file
notChymic.
Membru nou
Membru nou
Posts: 3
Joined: 31 Aug 2021, 21:59
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GLOBAL.ARENADEVILS.R
Fond eXtream: 0
Discord: !Robert#1957
Has thanked: 3 times

12 Oct 2021, 21:33

lexz wrote:
06 Oct 2021, 11:15
un plugin bonus box cand omori pe cineva.

Code: Select all

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < engine >
#include < fakemeta >
#include < fakemeta_util >
#include < fun >
#include < hamsandwich >

#define PLUGIN "BonusBox"
#define VERSION "1.0"
#define AUTHOR "SkepT Jr."

new const iTag[] = "^4[^3CSGO^4]^1"
new const ClassName [ ] = "BonusBox"
new models_box [] = {	
	"models/csgoclassy_case/csgoclassy_case.mdl"
};


const UNIT_SEC = 0x1000;
const FFADE = 0x0000;

#define FFADE_IN		0x0000		
#define FFADE_OUT		0x0001		
#define FFADE_MODULATE		0x0002		
#define FFADE_STAYOUT		0x0004	
#define SPEEDBOX 		600.0	

native set_user_scraps(id, value)
	native set_user_money(id, value)
	native set_user_keys(id, value)
	native set_user_cases(id, value)
	native get_user_scraps(id)
	native get_user_money(id)
	native get_user_keys(id)
	native get_user_cases(id)
	native is_user_logged(id)
	

public plugin_init ( ) {
	
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	register_event ( "DeathMsg", "eDeath", "a" );
	register_forward ( FM_PlayerPreThink, "ForcePlayerSpeed" );
	register_forward ( FM_Touch, "Touch" );
	
	register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
	// Add your code here...
}

public Event_HLTV_New_Round()
{
    remove_entity_name(ClassName);
} 

public plugin_precache() {
	for(new i; i < sizeof (models_box) ; i++)
		precache_model(models_box)
}

public give_bonus2(id)
{
	bonus_box(id)
}

public eDeath ( ) {
	
	new iKiller = read_data (1);
	new iVictim = read_data (2);
	new iRandom = random_num(1, 10);
	
	if ( iKiller == iVictim ) {
		
		return PLUGIN_HANDLED;
		
	}
	
	if(iRandom > 9)
		bonus_box (iVictim);
	else
		return PLUGIN_HANDLED
	
	return PLUGIN_CONTINUE;
}



public bonus_box ( id ) {
	
	if ( is_user_connected ( id ) && cs_get_user_team ( id ) != CS_TEAM_SPECTATOR ) {
		
		new Ent = fm_create_entity ( "info_target" );
		new Origin [ 3 ];
		get_user_origin ( id, Origin, 0 );
		set_pev ( Ent, pev_classname, ClassName )
		
		engfunc ( EngFunc_SetModel, Ent, models_box [0] );
		
		set_pev ( Ent, pev_mins, Float: { -10.0,-10.0,0.0 } );
		set_pev ( Ent, pev_maxs, Float: { 10.0,10.0,25.0 } );
		set_pev ( Ent, pev_size, Float: { -10.0,-10.0,0.0,10.0,10.0,25.0 } ); 
		engfunc ( EngFunc_SetSize, Ent, Float: { -10.0, -10.0, 0.0 }, Float: { 10.0, 10.0, 25.0 } );
		
		set_pev ( Ent,pev_solid, SOLID_BBOX );
		set_pev ( Ent,pev_movetype, MOVETYPE_TOSS );
		
		new Float: fOrigin [ 3 ];
		IVecFVec ( Origin, fOrigin );
		set_pev ( Ent, pev_origin, fOrigin );
		
	}
	
}

public Touch ( toucher, touched )
{
	
	if ( !is_user_alive( toucher ) || !pev_valid( touched ) )
		return FMRES_IGNORED;
	
	new classname [ 32 ];    
	pev( touched, pev_classname, classname, 31 );
	
	if (!equal( classname, ClassName ) )
		return FMRES_IGNORED;
	
	set_pev ( touched, pev_effects, EF_NODRAW );
	set_pev ( touched, pev_solid, SOLID_NOT );
	
	if (!remove_entity( touched ))
		return FMRES_IGNORED;
	
	if(is_user_logged(toucher) == 1)
	{
		give_bonus( toucher );
	}
	else
	{
		client_print_color(toucher, print_team_default, "%s You have to be logged in to get this bonus!", iTag)
		remove_entity( touched )
	}
	
	return FMRES_IGNORED;  
}

public give_bonus ( id )
{
	new iRandom, iChance
	
	iRandom = random_num(0,5)
	
	new iRandomBonus, iMoney[MAX_PLAYERS + 1], iCases[MAX_PLAYERS + 1], iKeys[MAX_PLAYERS + 1], iScraps[MAX_PLAYERS + 1]
	
	switch(iRandom)
	{
		case 0:
		{
			iMoney[id] = get_user_money(id)			
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iMoney[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 money^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_money(id, iMoney[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_money(id, iMoney[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 1:	
		{
			iCases[id] = get_user_cases(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,3)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				
				iRandomBonus *= -1
				
				if (iCases[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 cases^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_cases(id, iCases[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_cases(id, iCases[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 2:
		{
			iKeys[id] = get_user_keys(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iKeys[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 keys^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_keys(id, iKeys[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_keys(id, iKeys[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 3:
		{
			iScraps[id] = get_user_scraps(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,8)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iScraps[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 scraps^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_scraps(id, iScraps[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_scraps(id, iScraps[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 4:
		{
			if(is_user_alive(id))
			{
				new iRandomHP, iRandomAM
				
				iRandomHP = random_num(1,20)
				iRandomAM = random_num(1,20)
				
				set_user_health(id, get_user_health(id) + iRandomHP)
				set_user_armor(id, get_user_armor(id) + iRandomAM)
				
				client_print_color(id, print_team_default, "%s You got^4 %i Health^1 and^4 %i Armor^1.", iTag,iRandomHP, iRandomAM)
			}
			else
				return PLUGIN_HANDLED
		}
		
		case 5: 
		{
			if(is_user_alive(id))
			{
				set_user_gravity(id, 0.6)
				client_print_color(id, print_team_default, "%s You got^4 lower gravity^1, but only for this round!", iTag)
			}
			else
				return PLUGIN_HANDLED
		}
	}
	
	return PLUGIN_CONTINUE
}
model: https://www.mediafire.com/file/9yva9fbw ... e.rar/file

Poti face ceva sa pice dupa fiecare kill acel case? Ca pica foarte rar...
lexz
Membru, skill +1
Membru, skill +1
Posts: 186
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Detinator server CS: CSGO.WARFACE.RO
SteamID: profiles/76561198070
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 11 times
Been thanked: 23 times

13 Oct 2021, 00:50

Code: Select all

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < engine >
#include < fakemeta >
#include < fakemeta_util >
#include < fun >
#include < hamsandwich >

#define PLUGIN "BonusBox"
#define VERSION "1.0"
#define AUTHOR "SkepT Jr."

new const iTag[] = "^4[^3CSGO^4]^1"
new const ClassName [ ] = "BonusBox"
new models_box [] = {	
	"models/csgoclassy_case/csgoclassy_case.mdl"
};


const UNIT_SEC = 0x1000;
const FFADE = 0x0000;

#define FFADE_IN		0x0000		
#define FFADE_OUT		0x0001		
#define FFADE_MODULATE		0x0002		
#define FFADE_STAYOUT		0x0004	
#define SPEEDBOX 		600.0	

native set_user_scraps(id, value)
	native set_user_money(id, value)
	native set_user_keys(id, value)
	native set_user_cases(id, value)
	native get_user_scraps(id)
	native get_user_money(id)
	native get_user_keys(id)
	native get_user_cases(id)
	native is_user_logged(id)
	

public plugin_init ( ) {
	
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	register_event ( "DeathMsg", "eDeath", "a" );
	register_forward ( FM_PlayerPreThink, "ForcePlayerSpeed" );
	register_forward ( FM_Touch, "Touch" );
	
	register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
	// Add your code here...
}

public Event_HLTV_New_Round()
{
    remove_entity_name(ClassName);
} 

public plugin_precache() {
	for(new i; i < sizeof (models_box) ; i++)
		precache_model(models_box)
}

public give_bonus2(id)
{
	bonus_box(id)
}

public eDeath ( ) {
	
	new iKiller = read_data (1);
	new iVictim = read_data (2);
	
	if ( iKiller == iVictim ) {
		
		return PLUGIN_HANDLED;
		
	}

	bonus_box (iVictim);

	return PLUGIN_CONTINUE;
}



public bonus_box ( id ) {
	
	if ( is_user_connected ( id ) && cs_get_user_team ( id ) != CS_TEAM_SPECTATOR ) {
		
		new Ent = fm_create_entity ( "info_target" );
		new Origin [ 3 ];
		get_user_origin ( id, Origin, 0 );
		set_pev ( Ent, pev_classname, ClassName )
		
		engfunc ( EngFunc_SetModel, Ent, models_box [0] );
		
		set_pev ( Ent, pev_mins, Float: { -10.0,-10.0,0.0 } );
		set_pev ( Ent, pev_maxs, Float: { 10.0,10.0,25.0 } );
		set_pev ( Ent, pev_size, Float: { -10.0,-10.0,0.0,10.0,10.0,25.0 } ); 
		engfunc ( EngFunc_SetSize, Ent, Float: { -10.0, -10.0, 0.0 }, Float: { 10.0, 10.0, 25.0 } );
		
		set_pev ( Ent,pev_solid, SOLID_BBOX );
		set_pev ( Ent,pev_movetype, MOVETYPE_TOSS );
		
		new Float: fOrigin [ 3 ];
		IVecFVec ( Origin, fOrigin );
		set_pev ( Ent, pev_origin, fOrigin );
		
	}
	
}

public Touch ( toucher, touched )
{
	
	if ( !is_user_alive( toucher ) || !pev_valid( touched ) )
		return FMRES_IGNORED;
	
	new classname [ 32 ];    
	pev( touched, pev_classname, classname, 31 );
	
	if (!equal( classname, ClassName ) )
		return FMRES_IGNORED;
	
	set_pev ( touched, pev_effects, EF_NODRAW );
	set_pev ( touched, pev_solid, SOLID_NOT );
	
	if (!remove_entity( touched ))
		return FMRES_IGNORED;
	
	if(is_user_logged(toucher) == 1)
	{
		give_bonus( toucher );
	}
	else
	{
		client_print_color(toucher, print_team_default, "%s You have to be logged in to get this bonus!", iTag)
		remove_entity( touched )
	}
	
	return FMRES_IGNORED;  
}

public give_bonus ( id )
{
	new iRandom, iChance
	
	iRandom = random_num(0,5)
	
	new iRandomBonus, iMoney[MAX_PLAYERS + 1], iCases[MAX_PLAYERS + 1], iKeys[MAX_PLAYERS + 1], iScraps[MAX_PLAYERS + 1]
	
	switch(iRandom)
	{
		case 0:
		{
			iMoney[id] = get_user_money(id)			
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iMoney[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 money^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_money(id, iMoney[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_money(id, iMoney[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i dolar%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 1:	
		{
			iCases[id] = get_user_cases(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,3)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				
				iRandomBonus *= -1
				
				if (iCases[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 cases^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_cases(id, iCases[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_cases(id, iCases[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i case%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 2:
		{
			iKeys[id] = get_user_keys(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,5)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iKeys[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 keys^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_keys(id, iKeys[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_keys(id, iKeys[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i key%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 3:
		{
			iScraps[id] = get_user_scraps(id)
			
			iChance = random_num(0,10)
			
			iRandomBonus = random_num(0,8)
			
			if (iChance >= 7 && iRandomBonus != 0)
			{
				iRandomBonus *= -1
			}
			
			if (iRandomBonus == 0)
			{
				client_print_color(id, print_team_default, "%s You didn't get anything!", iTag, iRandomBonus)
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus < 0)
			{
				iRandomBonus *= -1
				
				if (iScraps[id] - iRandomBonus <= 0)
				{
					client_print_color(id, print_team_default, "%s You haven't lost anything because you don't have enough^4 scraps^1.", iTag)
					return PLUGIN_HANDLED
				}
				
				set_user_scraps(id, iScraps[id] - iRandomBonus)
				client_print_color(id, print_team_default, "%s You lost^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")	
				return PLUGIN_HANDLED
			}
			else if (iRandomBonus > 0)
			{
				set_user_scraps(id, iScraps[id] + iRandomBonus)
				client_print_color(id, print_team_default, "%s You got^4 %i scrap%s^1.", iTag, iRandomBonus, iRandomBonus == 1 ? "" : "s")		
				return PLUGIN_HANDLED
			}
		}
		
		case 4:
		{
			if(is_user_alive(id))
			{
				new iRandomHP, iRandomAM
				
				iRandomHP = random_num(1,20)
				iRandomAM = random_num(1,20)
				
				set_user_health(id, get_user_health(id) + iRandomHP)
				set_user_armor(id, get_user_armor(id) + iRandomAM)
				
				client_print_color(id, print_team_default, "%s You got^4 %i Health^1 and^4 %i Armor^1.", iTag,iRandomHP, iRandomAM)
			}
			else
				return PLUGIN_HANDLED
		}
		
		case 5: 
		{
			if(is_user_alive(id))
			{
				set_user_gravity(id, 0.6)
				client_print_color(id, print_team_default, "%s You got^4 lower gravity^1, but only for this round!", iTag)
			}
			else
				return PLUGIN_HANDLED
		}
	}
	
	return PLUGIN_CONTINUE
}
Post Reply

Return to “Addon-uri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest