Cerere knife menu plugin

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 .
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 2 times
Contact:

24 Mar 2020, 19:51

Doresc si eu un plugin Knife menu .
Acest meniu sa se deschida cand scrii /knife si sa aiba acces doar playerii VIP cu flag T

As vrea sa fie 3 tipuri de knife
1.Model 1
2.Model 2
3.Default
iar atunci cand iesi de pe server sa se reseteze si sa iti dea knife default pana alegi altul din /knife
Sigilat.ro
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2856
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 38 times
Been thanked: 436 times
Contact:

24 Mar 2020, 19:54

Nu fac nimic contra cost! Faceți cerere bine detaliată aici, pe forum. Nu-mi mai dați add pe Steam doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz.
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici.
BiNECUVANTAT
Membru, skill 0
Membru, skill 0
Posts: 18
Joined: 04 Nov 2018, 16:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

24 Mar 2020, 20:06

Vrei vreun beneficiu pe ele sau doar model?
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 2 times
Contact:

24 Mar 2020, 21:46

BiNECUVANTAT wrote:
24 Mar 2020, 20:06
Vrei vreun beneficiu pe ele sau doar model?
model
BiNECUVANTAT
Membru, skill 0
Membru, skill 0
Posts: 18
Joined: 04 Nov 2018, 16:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

24 Mar 2020, 23:04

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{

	if ( eKnife[id] == 1 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[0] );

	if ( eKnife[id] == 2 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[1] );

	if ( eKnife[id] == 3 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[2] );
	
}		
Schimbi tu in meniu numele si textul. Succes
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 2 times
Contact:

25 Mar 2020, 13:35

BiNECUVANTAT wrote:
24 Mar 2020, 23:04

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{

	if ( eKnife[id] == 1 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[0] );

	if ( eKnife[id] == 2 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[1] );

	if ( eKnife[id] == 3 ) 
		set_pev (id, pev_viewmodel2, v_gun_model[2] );
	
}		
Schimbi tu in meniu numele si textul. Succes
Merge meniul , dar cand scriu /knife si selectez un knife imi pica server-ul + ca nu imi da acel knife cerut
Eroare la compilare
| Afiseaza codul
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

include\engine_const.inc(249) : warning 201: redefinition of constant/macro (symbol "TraceResult")
Header size:            832 bytes
Code size:             2568 bytes
Data size:             1644 bytes
Stack/heap size:      16384 bytes; estimated max. usage=781 cells (3124 bytes)
Total requirements:   21428 bytes

1 Warning.
Done.
BiNECUVANTAT
Membru, skill 0
Membru, skill 0
Posts: 18
Joined: 04 Nov 2018, 16:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

25 Mar 2020, 17:59

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{
	new szWeapon = get_user_weapon ( id );
	
	if ( szWeapon(id) == CSW_KNIFE  && is_user_alive(id))
	{
		if ( eKnife[id] == 1 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[0] );

		if ( eKnife[id] == 2 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[1] );

		if ( eKnife[id] == 3 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[2] );
	}
}		
Da..sunt eu foarte prost si am uitat de verificarea armei..de asta pica. Vezi acum.
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 2 times
Contact:

25 Mar 2020, 18:56

BiNECUVANTAT wrote:
25 Mar 2020, 17:59

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{
	new szWeapon = get_user_weapon ( id );
	
	if ( szWeapon(id) == CSW_KNIFE  && is_user_alive(id))
	{
		if ( eKnife[id] == 1 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[0] );

		if ( eKnife[id] == 2 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[1] );

		if ( eKnife[id] == 3 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[2] );
	}
}		
Da..sunt eu foarte prost si am uitat de verificarea armei..de asta pica. Vezi acum.
eroare
| Afiseaza codul
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

include\engine_const.inc(249) : warning 201: redefinition of constant/macro (symbol "TraceResult")
knifevip.sma(106) : error 012: invalid function call, not a valid address
knifevip.sma(106) : warning 215: expression has no effect
knifevip.sma(106) : error 001: expected token: ";", but found ")"
knifevip.sma(106) : error 029: invalid expression, assumed zero
knifevip.sma(106) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Could not locate output file knifevip.amx (compile failed).
neverfree33
Membru, skill 0
Membru, skill 0
Posts: 27
Joined: 27 Jan 2020, 12:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0

25 Mar 2020, 19:48

Și eu am nevoie,
BiNECUVANTAT
Membru, skill 0
Membru, skill 0
Posts: 18
Joined: 04 Nov 2018, 16:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

25 Mar 2020, 20:26

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{
	new szWeapon = get_user_weapon ( id );
	
	if ( szWeapon == CSW_KNIFE  && is_user_alive(id))
	{
		if ( eKnife[id] == 1 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[0] );

		if ( eKnife[id] == 2 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[1] );

		if ( eKnife[id] == 3 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[2] );
	}
}		
acm nu mai da eroare ca l-am testat. vezi daca merge pe server.
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 2 times
Contact:

26 Mar 2020, 13:05

BiNECUVANTAT wrote:
25 Mar 2020, 20:26

Code: Select all

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

#define PLUGIN "KnifeMenu"
#define VERSION "1.0"
#define AUTHOR "KillerElite"

new v_gun_model[][] = 
{ 	
	"models/knifemodel/v_knifeunu.mdl",
	"models/knifemodel/v_knifedoi.mdl",
	"models/knifemodel/v_knifetrei.mdl",
	"models/v_knife.mdl"

}

new eKnife[33];

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd ( "say /knife", "cmdKnife" );
	register_clcmd ( "say_team /knife", "cmdKnife" );
	register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );

}

public cmdKnife ( id ) 
{

	if ( !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
	{
		client_cmd( id, "echo NU ai acces la aceasta comanda!" );
		return PLUGIN_HANDLED;
	}

	if ( is_user_alive(id) )
	{
		new menu = menu_create ( "Knife Menu:", "KnifeMenu" );
		menu_additem ( menu, "\yModel \r1", "1", 0 );
		menu_additem ( menu, "\yModel \r2", "2", 0 );
		menu_additem ( menu, "\yDefault", "3", 0 );
    
		menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
		menu_display ( id, menu, 0 );
	
		return 1;
	}

	return 1;
}

public KnifeMenu ( id, menu, item ) 
{
	
	if( item == MENU_EXIT )
	{
		return 1;
	}
    
	new data [ 6 ], szName [ 64 ];
	new access, callback; 
	menu_item_getinfo ( menu, item, access, data,charsmax ( data ), szName,charsmax ( szName ), callback );
	new key = str_to_num ( data );
    
	switch ( key )
	{
		case 1:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 1.")
				eKnife[id] = 1;
				menu_destroy ( menu );
				return 1;

		}
		case 2:
		{
				client_print(id, print_chat, "Ti-ai ales Modelul 2.")
				eKnife[id] = 2;
				menu_destroy ( menu );
				return 1;
		}
		case 3:
		{
				client_print(id, print_chat, "Ti-ai ales modelul default.")
				eKnife[id] = 3;
				menu_destroy ( menu );
				return 1;
		}
	}

	return PLUGIN_HANDLED;
}


public CurrentWeapon ( id ) 
{
	new szWeapon = get_user_weapon ( id );
	
	if ( szWeapon == CSW_KNIFE  && is_user_alive(id))
	{
		if ( eKnife[id] == 1 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[0] );

		if ( eKnife[id] == 2 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[1] );

		if ( eKnife[id] == 3 ) 
			set_pev (id, pev_viewmodel2, v_gun_model[2] );
	}
}		
acm nu mai da eroare ca l-am testat. vezi daca merge pe server.
Nu incarca modelele si cand selectez un knife pica sv-ul
User avatar
iNdio
Membru, skill +4
Membru, skill +4
Posts: 1614
Joined: 28 Jan 2015, 17:42
Detinator Steam: Da
SteamID: iNdioPGL
Reputatie: Fost Membru Club eXtreamCS (6 luni)
Castigator Membru Club eXtream @ Ganduri de sub dus (25 OCT - 25 FEB)
Fond eXtream: 0

26 Mar 2020, 14:22

In /cstrike/models trebuie sa ai un folder numit "Knife", il schimbi tu dupa bunul plac (modelele la fel):
{
"models/v_knife.mdl",
"models/Knife/Karambit/Karambit.mdl",
"models/Knife/Bayonet/Bayonet.mdl"
};
Download
Where Cs had no value, amxx, sometimes, had its price...
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests