Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie
Modyfikacja

Prośba o Małą Modyfikacje :)

Modyfikacja

  • Zamknięty Temat jest zamknięty
5 odpowiedzi w tym temacie

#1 Misiaczek ;c

    /dev/null

  • Moderator

Reputacja: 1 678
Godlike

  • Postów:2 496
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Halemba
Offline

Napisano 05.09.2009 19:06

Prosił bym o małą modyfikacje Restartu R3X'a, a mianowicie zamiast 1 restartu to 3 restarty i zeby bylo tak:

Przed 1 Restartem, w say pisze: -=[ Fight after 3 restarts ]=-
1 Restart, w say pisze: -=[ #1 ]=-
2 Restart, w say pisze: -=[ #2 ]=-
3 Restart, w say pisze: -=[ #3 ]=-
Po 3 Restarcie i rozpoczęciu normalnej gry w say pisze:
-=[LIVE--------]=-
-=[-LIVE-------]=-
-=[--LIVE------]=-
-=[---LIVE-----]=-
-=[----LIVE----]=-
-=[-----LIVE---]=-
-=[------LIVE--]=-
-=[-------LIVE-]=-
-=[--------LIVE]=-
-=[E--------LIV]=-
-=[VE--------LI]=-
-=[IVE--------L]=-
-=[LIVE--------]=-
-=[-LIVE-------]=-
-=[--LIVE------]=-
-=[---LIVE-----]=-
-=[----LIVE----]=-
-=[-----LIVE---]=-
-=[------LIVE--]=-
-=[-------LIVE-]=-
-=[--------LIVE]=-
-=[E--------LIV]=-
-=[VE--------LI]=-
-=[IVE--------L]=-
-=[LIVE--------]=-
-=[-LIVE-------]=-
-=[--LIVE------]=-
-=[---LIVE-----]=-
-=[----LIVE----]=-
-=[---HF&GL---]=-
-=[-----Go-----]=-
-=[-----Go-----]=-


SMA
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "Rozgrzewka"
#define VERSION "1.2.2"
#define AUTHOR "R3X"

new const gszMusic[]="mis/muzyka_restart.mp3";
new const Jeden[]="mis/1.mp3";
new const Dwa[]="mis/2.mp3";
new const Trzy[]="mis/3.mp3";
new const gszPausePlugins[][]=
{
	"alt_end_round_sounds.amxx"
};

new const giColor[3]={0, 200,200};

#define MAX_PLAYERS 32
#define SPAWN_TASKID 9999
#define TASK_EQUIP 99999
#define RESTART_TASKID 123
#define ACTIVE_TASKID 124

new bool:Active=false;
new bool:gbPlay[33];

new Float:fPosition[2];

new g_cvarRTime;
new g_cvarFreeze;
new g_cvarTimerX,g_cvarTimerY, g_cvarDelay, g_cvarSpawnDelay;

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_event("TextMsg", "Game_Restart", "a", "2&#Game_C");
	register_event("DeathMsg","onDeath","a");
	register_event("CurWeapon","eventCurWeapon","be","1=0", "2!0");
	
	RegisterHam(Ham_Spawn, "player", "fwSpawn",1);
	register_forward(FM_SetModel, "fwSetModel",1);
	register_event("HLTV", "setWeapons", "a", "1=0", "2=0");
	
	g_cvarRTime=register_cvar("restart_time","60",0,60.0);
	g_cvarTimerX=register_cvar("restart_timer_pozx","0.01",0,0.01);
	g_cvarTimerY=register_cvar("restart_timer_pozy","0.86",0,0.86);
	g_cvarDelay=register_cvar("restart_weapondelay","1.0",0,1.0);
	g_cvarSpawnDelay=register_cvar("restart_spawndelay","2.0",0,2.0);
	
	g_cvarFreeze=get_cvar_pointer("mp_freezetime");
	
	blockBuy();
}
	
public plugin_precache()
{
	precache_sound(gszMusic);
	precache_sound(Jeden);
	precache_sound(Dwa);
	precache_sound(Trzy);
}

public Game_Restart()
{
	if(Active)
	{
		remove_task(RESTART_TASKID);
		return;
	}
	Active=true;
	new iRTime=get_pcvar_num(g_cvarRTime)+get_pcvar_num(g_cvarFreeze)+1;
	
	for(new i=1;i<33;i++)
		gbPlay[i]=true;

	fPosition[0]=get_pcvar_float(g_cvarTimerX);
	fPosition[1]=get_pcvar_float(g_cvarTimerY);
	new param[1];
	param[0]=iRTime;
	set_task(1.0,"CountDown",RESTART_TASKID,param,1);
	
	for(new i=0;i<sizeof gszPausePlugins;i++)
		pause("ac",gszPausePlugins[i]);
}

public CountDown(param[1])
{
	new iNow=param[0]--;
	switch(iNow){
		case 0:
		{
			server_cmd("sv_restartround 1");
			clearRespawns();
			new param[1];
			param[0]=0;
			set_task(1.0,"Activation",ACTIVE_TASKID,param,1);
			for(new i=0;i<sizeof gszPausePlugins;i++)
				unpause("ac",gszPausePlugins[i]);
		}
		case 1:
		{
			//client_cmd(0,"speak one");
			client_cmd(0,"mp3 play sound/%s",Jeden);
		}
		case 2:
		{
			//client_cmd(0,"speak two");
			client_cmd(0,"mp3 play sound/%s",Dwa);
		}
		case 3:
		{
			//client_cmd(0,"speak three");
			client_cmd(0,"mp3 play sound/%s",Trzy);
		}
	}
	if(iNow>=1)
		set_task(1.0,"CountDown",RESTART_TASKID,param,1);
	new fx=0;
	if(iNow<=5)
	{
		fx=1;
	}
	set_hudmessage(giColor[0], giColor[1], giColor[2], fPosition[0], fPosition[1], fx, 6.0, 1.0)
	show_hudmessage(0, "Czas rozgrzewki^n%2d:%02d^nHL & GF",iNow/60,iNow%60);
}

public Activation(param[1])
{
	Active=(param[0]==0)?false:true;
}

public onDeath()
{
	new vid=read_data(2);
	if(Active)
		set_task(get_pcvar_float(g_cvarSpawnDelay),"respawn",SPAWN_TASKID+vid);
	return PLUGIN_CONTINUE;
}

public fwSpawn(id)
{
	if(Active && is_user_alive(id))
	{
		if(gbPlay[id])
		{
			play(id, gszMusic);
			gbPlay[id]=false;
		}
		if(task_exists(TASK_EQUIP+id))
			remove_task(TASK_EQUIP+id);
		set_task(0.2, "taskEquip", TASK_EQUIP+id);
	}
}

public eventCurWeapon(id)
{
	if(Active)
	{
		if(task_exists(TASK_EQUIP+id))
			remove_task(TASK_EQUIP+id);
		set_task(0.5, "taskEquip", TASK_EQUIP+id);
	}
}

public taskEquip(id)
{
	id-=TASK_EQUIP;
	if(Active && is_user_alive(id))
	{
		fm_strip_user_weapons(id);
		fm_give_item(id, "weapon_hegrenade");
	}
}

public fwSetModel(ent, szModel[])
{
	if(Active)
	{
		if(equal(szModel[7], "w_hegrenade.mdl"))
			set_task(get_pcvar_float(g_cvarDelay), "taskEquip", TASK_EQUIP+pev(ent,pev_owner));
		else
		{
			static szClass[32];
			pev(ent, pev_classname,szClass ,31);
			if(equal(szClass, "weaponbox") || 
			contain(szClass, "weapon_")==0 ||
			contain(szClass, "item_")==0 )
			{
				set_pev(ent, pev_solid, SOLID_NOT);
				fm_set_rendering(ent, _, _,_,_,kRenderTransAlpha,0);
			}
		}
	}
}

public respawn(task_id)
{
	ExecuteHamB(Ham_CS_RoundRespawn,task_id-SPAWN_TASKID);
}

public clearRespawns()
{
	for(new i=1;i<=MAX_PLAYERS;i++)
	{
		if(task_exists(SPAWN_TASKID+i))
			remove_task(SPAWN_TASKID+i);
		if(task_exists(TASK_EQUIP+i))
			remove_task(TASK_EQUIP+i);
	}
}

public blockBuy()
{
	register_clcmd("drop","block")
	register_clcmd("cl_setautobuy","block")
	register_clcmd("cl_autobuy","block")
	register_clcmd("cl_setrebuy","block")
	register_clcmd("cl_rebuy","block")
	register_clcmd("buy","block")
	register_clcmd("p228","block");
	register_clcmd("228compact","block");
	register_clcmd("shield","block");
	register_clcmd("scout","block");    
	register_clcmd("hegren","block");               
	register_clcmd("xm1014","block");
	register_clcmd("autoshotgun","block");                   
	register_clcmd("mac10","block");                
	register_clcmd("aug","block");
	register_clcmd("bullpup","block");
	register_clcmd("sgren","block");   
	register_clcmd("elites","block");     
	register_clcmd("fn57","block");
	register_clcmd("fiveseven","block");  
	register_clcmd("ump45","block");                
	register_clcmd("sg550","block");
	register_clcmd("krieg550","block");   
	register_clcmd("galil","block");
	register_clcmd("defender","block");  
	register_clcmd("famas","block");
	register_clcmd("clarion","block");   
	register_clcmd("usp","block");
	register_clcmd("km45","block");       
	register_clcmd("glock","block");
	register_clcmd("9x19mm","block");     
	register_clcmd("awp","block");
	register_clcmd("magnum","block");     
	register_clcmd("mp5","block");
	register_clcmd("smg","block");       
	register_clcmd("m249","block");                 
	register_clcmd("m3","block");
	register_clcmd("12gauge","block");   
	register_clcmd("m4a1","block");                 
	register_clcmd("tmp","block");
	register_clcmd("mp","block");         
	register_clcmd("g3sg1","block");
	register_clcmd("d3au1","block");    
	register_clcmd("flash","block");                
	register_clcmd("deagle","block");
	register_clcmd("nighthawk","block"); 
	register_clcmd("sg552","block");
	register_clcmd("krieg552","block");   
	register_clcmd("ak47","block");
	register_clcmd("cv47","block");                        
	register_clcmd("p90","block");
	register_clcmd("c90","block");
	register_clcmd("primammo","block");
	register_clcmd("secammo","block");
	register_clcmd("vest","block");
	register_clcmd("vesthelm","block");
	register_clcmd("nvgs","block");
}

public block(id)
{
	if(Active)
	{
		client_print(id,print_center,"Nie tym razem");
		return PLUGIN_HANDLED;
	}
	return PLUGIN_CONTINUE;
}

public setWeapons()
{
	new ent=-1;
	do
	{
		ent=engfunc(EngFunc_FindEntityByString, ent,"classname", "armoury_entity");
		if(pev_valid( ent ))
		{
			set_pev(ent, pev_solid, (Active)?SOLID_NOT:1);
			fm_set_rendering(ent,kRenderFxNone, 0,0,0, kRenderTransTexture,(Active)?0:255);
		}
	}
	while(ent);
}

play(id,const sound[])
{
	new end=strlen(sound)-4;
	if(containi(sound,".mp3") == end && end>0)
		client_cmd(id,"mp3 play sound/%s",sound);
	else if(containi(sound,".wav") == end && end>0)
		client_cmd(id, "spk sound/%s",sound);
	else
		client_cmd(id, "speak %s",sound);
	
}

Myślę że rozumiecie o co Mi się rozchodzi :P
  • +
  • -
  • 0

#2 DK

    Wszechobecny

  • Użytkownik

Reputacja: 49
Pomocny

  • Postów:411
  • GG:
  • Steam:steam
  • Lokalizacja:KrK / Wadowice
Offline

Napisano 06.09.2009 15:13

cos nie kumam chcesz po tym całym restarcie jescze 3 resy były ?? BO to co tam wyzej napisałes to w necie mozna znależć

alias "wait5" "wait; wait; wait; wait; wait" 
alias "wait10" "wait5; wait5" 
alias "wait110" "wait10; wait10; wait10; wait10; wait10; wait10; wait10; wait10; wait10; wait10; wait10" 

alias "rr1" "sv_restartround 1" 

say [----Fight after 3 restarts----] ;wait110 
say [-----#1-----]
say 
say 
rr1 
wait110 
wait110 
say [-----#2-----]
say 
say 
rr1 
wait110 
wait110 
say [-----#3-----]
say 
say 
sv_restartround 2
wait110 
wait110 
say [LIVE--------] ;wait5 
say [-LIVE-------] ;wait5 
say [--LIVE------] ;wait5 
say [---LIVE-----] ;wait5 
say [----LIVE----] ;wait5 
say [-----LIVE---] ;wait5 
say [------LIVE--] ;wait5 
say [-------LIVE-] ;wait5 
say [--------LIVE] ;wait5 
say [E--------LIV] ;wait5 
say [VE--------LI] ;wait5 
say [IVE--------L] ;wait5 
say [LIVE--------] ;wait5 
say [-LIVE-------] ;wait5 
say [--LIVE------] ;wait5 
say [---LIVE-----] ;wait5 
say [----LIVE----] ;wait5 
say [-----LIVE---] ;wait5 
say [------LIVE--] ;wait5 
say [-------LIVE-] ;wait5 
say [--------LIVE] ;wait5 
say [E--------LIV] ;wait5 
say [VE--------LI] ;wait5 
say [IVE--------L] ;wait5 
say [LIVE--------] ;wait5 
say [-LIVE-------] ;wait5 
say [--LIVE------] ;wait5 
say [---LIVE-----] ;wait5 
say [---HF&GL---] ;wait5 
say [-----Go-----] ;wait5 


Zapisujesz jako restart.cfg np i odpalasz komenda amx_cfg restart.cfg
  • +
  • -
  • 0

#3 Dudix

    Zaawansowany

  • Użytkownik

Reputacja: 28
Życzliwy

  • Postów:101
  • Steam:steam
  • Imię:Kamil
  • Lokalizacja:Internet
Offline

Napisano 06.09.2009 17:40

on nie wie jak taki plik.cfg odpalic za pomoca pluginu po koncu rozgrzewki
  • +
  • -
  • 0

#4 Misiaczek ;c

    /dev/null

  • Autor tematu
  • Moderator

Reputacja: 1 678
Godlike

  • Postów:2 496
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Halemba
Offline

Napisano 06.09.2009 18:59

dudix, wiem jak je odpalic tylko ja to chce żeby było w pluginie ;P w sumie będa 4 restarty :P, a nie chce exec 3rr.cfg bo na kij odwołanie do czegoś co można do pluginu dodać??? :PP
  • +
  • -
  • 0

#5 Mochi

    Zaawansowany

  • Użytkownik

Reputacja: 16
Początkujący

  • Postów:81
  • Lokalizacja:asd
Offline

Napisano 06.09.2009 19:12

Jak dla mnie to może być jeden wielki lag
ale jest
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "Rozgrzewka"
#define VERSION "1.2.2"
#define AUTHOR "R3X"

new const gszMusic[]="mis/muzyka_restart.mp3";
new const Jeden[]="mis/1.mp3";
new const Dwa[]="mis/2.mp3";
new const Trzy[]="mis/3.mp3";
new const gszPausePlugins[][]=
{
"alt_end_round_sounds.amxx"
};

new const giColor[3]={0, 200,200};

#define MAX_PLAYERS 32
#define SPAWN_TASKID 9999
#define TASK_EQUIP 99999
#define RESTART_TASKID 123
#define ACTIVE_TASKID 124

new bool:Active=false;
new bool:gbPlay[33];

new Float:fPosition[2];

new g_cvarRTime;
new g_cvarFreeze;
new g_cvarTimerX,g_cvarTimerY, g_cvarDelay, g_cvarSpawnDelay;

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_event("TextMsg", "Game_Restart", "a", "2&#Game_C");
register_event("DeathMsg","onDeath","a");
register_event("CurWeapon","eventCurWeapon","be","1=0", "2!0");

RegisterHam(Ham_Spawn, "player", "fwSpawn",1);
register_forward(FM_SetModel, "fwSetModel",1);
register_event("HLTV", "setWeapons", "a", "1=0", "2=0");

g_cvarRTime=register_cvar("restart_time","60",0,60.0);
g_cvarTimerX=register_cvar("restart_timer_pozx","0.01",0,0.01);
g_cvarTimerY=register_cvar("restart_timer_pozy","0.86",0,0.86);
g_cvarDelay=register_cvar("restart_weapondelay","1.0",0,1.0);
g_cvarSpawnDelay=register_cvar("restart_spawndelay","2.0",0,2.0);

g_cvarFreeze=get_cvar_pointer("mp_freezetime");

blockBuy();
}

public plugin_precache()
{
precache_sound(gszMusic);
precache_sound(Jeden);
precache_sound(Dwa);
precache_sound(Trzy);
}

public Game_Restart()
{
if(Active)
{
	remove_task(RESTART_TASKID);
	return;
}
Active=true;
new iRTime=get_pcvar_num(g_cvarRTime)+get_pcvar_num(g_cvarFreeze)+1;

for(new i=1;i<33;i++)
	gbPlay[i]=true;
	
	fPosition[0]=get_pcvar_float(g_cvarTimerX);
	fPosition[1]=get_pcvar_float(g_cvarTimerY);
	new param[1];
	param[0]=iRTime;
	set_task(1.0,"CountDown",RESTART_TASKID,param,1);
	
	for(new i=0;i<sizeof gszPausePlugins;i++)
		pause("ac",gszPausePlugins[i]);
}

public CountDown(param[1])
{
	new iNow=param[0]--;
	switch(iNow){
		case 0:
		{
			client_print(0,print_console,"-=[ Fight after 3 restarts ]=-")
			server_cmd("sv_restartround 1");
			client_print(0,print_chat,"-=[ #1 ]=-")
			set_task(3.0,"restart")
		}
		case 1:
		{
			//client_cmd(0,"speak one");
			client_cmd(0,"mp3 play sound/%s",Jeden);
		}
		case 2:
		{
			//client_cmd(0,"speak two");
			client_cmd(0,"mp3 play sound/%s",Dwa);
		}
		case 3:
		{
			//client_cmd(0,"speak three");
			client_cmd(0,"mp3 play sound/%s",Trzy);
		}
	}
	if(iNow>=1)
		set_task(1.0,"CountDown",RESTART_TASKID,param,1);
	new fx=0;
	if(iNow<=5)
	{
		fx=1;
	}
	set_hudmessage(giColor[0], giColor[1], giColor[2], fPosition[0], fPosition[1], fx, 6.0, 1.0)
	show_hudmessage(0, "Czas rozgrzewki^n%2d:%02d^nHL & GF",iNow/60,iNow%60);
}
public restart()
{
	server_cmd("sv_restartround 1");
	client_print(0,print_chat,"-=[ #2 ]=-")
	set_task(2.0,"restart2")
}
public restart2()
{
	client_print(0,print_chat,"-=[ #3 ]=-")
	server_cmd("sv_restartround 1");
	set_task(2.0,"napis")
	clearRespawns();
	new param[1];
	param[0]=0;
	set_task(1.0,"Activation",ACTIVE_TASKID,param,1);
	for(new i=0;i<sizeof gszPausePlugins;i++)
		unpause("ac",gszPausePlugins[i]);
}
public napis()
{
	client_print(0,print_chat,"-=[LIVE--------]=-")
	client_print(0,print_chat,"-=[-LIVE-------]=-")
	client_print(0,print_chat,"-=[--LIVE------]=-")
	client_print(0,print_chat,"-=[---LIVE-----]=-")
	client_print(0,print_chat,"-=[----LIVE----]=-")
	client_print(0,print_chat,"-=[-----LIVE---]=-")
	client_print(0,print_chat,"-=[------LIVE--]=-")
	client_print(0,print_chat,"-=[-------LIVE-]=-")
	client_print(0,print_chat,"-=[--------LIVE]=-")
	client_print(0,print_chat,"-=[E--------LIV]=-")
	client_print(0,print_chat,"-=[VE--------LI]=-")
	client_print(0,print_chat,"-=[IVE--------L]=-")
	client_print(0,print_chat,"-=[LIVE--------]=-")
	client_print(0,print_chat,"-=[-LIVE-------]=-")
	client_print(0,print_chat,"-=[--LIVE------]=-")
	client_print(0,print_chat,"-=[---LIVE-----]=-")
	client_print(0,print_chat,"-=[----LIVE----]=-")
	client_print(0,print_chat,"-=[-----LIVE---]=-")
	client_print(0,print_chat,"-=[------LIVE--]=-")
	client_print(0,print_chat,"-=[-------LIVE-]=-")
	client_print(0,print_chat,"-=[--------LIVE]=-")
	client_print(0,print_chat,"-=[E--------LIV]=-")
	client_print(0,print_chat,"-=[VE--------LI]=-")
	client_print(0,print_chat,"-=[IVE--------L]=-")
	client_print(0,print_chat,"-=[LIVE--------]=-")
	client_print(0,print_chat,"-=[-LIVE-------]=-")
	client_print(0,print_chat,"-=[--LIVE------]=-")
	client_print(0,print_chat,"-=[---LIVE-----]=-")
	client_print(0,print_chat,"-=[----LIVE----]=-")
	client_print(0,print_chat,"-=[---HF&GL---]=-")
	client_print(0,print_chat,"-=[-----Go-----]=-")
	client_print(0,print_chat,"-=[-----Go-----]=-")
}


public Activation(param[1])
{
	Active=(param[0]==0)?false:true;
}

public onDeath()
{
	new vid=read_data(2);
	if(Active)
		set_task(get_pcvar_float(g_cvarSpawnDelay),"respawn",SPAWN_TASKID+vid);
	return PLUGIN_CONTINUE;
}

public fwSpawn(id)
{
	if(Active && is_user_alive(id))
	{
		if(gbPlay[id])
		{
			play(id, gszMusic);
			gbPlay[id]=false;
		}
		if(task_exists(TASK_EQUIP+id))
			remove_task(TASK_EQUIP+id);
		set_task(0.2, "taskEquip", TASK_EQUIP+id);
	}
}

public eventCurWeapon(id)
{
	if(Active)
	{
		if(task_exists(TASK_EQUIP+id))
			remove_task(TASK_EQUIP+id);
		set_task(0.5, "taskEquip", TASK_EQUIP+id);
	}
}

public taskEquip(id)
{
	id-=TASK_EQUIP;
	if(Active && is_user_alive(id))
	{
		fm_strip_user_weapons(id);
		fm_give_item(id, "weapon_hegrenade");
	}
}

public fwSetModel(ent, szModel[])
{
	if(Active)
	{
		if(equal(szModel[7], "w_hegrenade.mdl"))
			set_task(get_pcvar_float(g_cvarDelay), "taskEquip", TASK_EQUIP+pev(ent,pev_owner));
		else
		{
			static szClass[32];
			pev(ent, pev_classname,szClass ,31);
			if(equal(szClass, "weaponbox") ||
			contain(szClass, "weapon_")==0 ||
			contain(szClass, "item_")==0 )
		{
			set_pev(ent, pev_solid, SOLID_NOT);
			fm_set_rendering(ent, _, _,_,_,kRenderTransAlpha,0);
		}
	}
}
}

public respawn(task_id)
{
ExecuteHamB(Ham_CS_RoundRespawn,task_id-SPAWN_TASKID);
}

public clearRespawns()
{
for(new i=1;i<=MAX_PLAYERS;i++)
{
	if(task_exists(SPAWN_TASKID+i))
		remove_task(SPAWN_TASKID+i);
		if(task_exists(TASK_EQUIP+i))
			remove_task(TASK_EQUIP+i);
	}
}

public blockBuy()
{
	register_clcmd("drop","block")
	register_clcmd("cl_setautobuy","block")
	register_clcmd("cl_autobuy","block")
	register_clcmd("cl_setrebuy","block")
	register_clcmd("cl_rebuy","block")
	register_clcmd("buy","block")
	register_clcmd("p228","block");
	register_clcmd("228compact","block");
	register_clcmd("shield","block");
	register_clcmd("scout","block");   
	register_clcmd("hegren","block");               
	register_clcmd("xm1014","block");
	register_clcmd("autoshotgun","block");                   
	register_clcmd("mac10","block");               
	register_clcmd("aug","block");
	register_clcmd("bullpup","block");
	register_clcmd("sgren","block");   
	register_clcmd("elites","block");     
	register_clcmd("fn57","block");
	register_clcmd("fiveseven","block"); 
	register_clcmd("ump45","block");               
	register_clcmd("sg550","block");
	register_clcmd("krieg550","block");   
	register_clcmd("galil","block");
	register_clcmd("defender","block"); 
	register_clcmd("famas","block");
	register_clcmd("clarion","block");   
	register_clcmd("usp","block");
	register_clcmd("km45","block");       
	register_clcmd("glock","block");
	register_clcmd("9x19mm","block");     
	register_clcmd("awp","block");
	register_clcmd("magnum","block");     
	register_clcmd("mp5","block");
	register_clcmd("smg","block");       
	register_clcmd("m249","block");                 
	register_clcmd("m3","block");
	register_clcmd("12gauge","block");   
	register_clcmd("m4a1","block");                 
	register_clcmd("tmp","block");
	register_clcmd("mp","block");         
	register_clcmd("g3sg1","block");
	register_clcmd("d3au1","block");   
	register_clcmd("flash","block");               
	register_clcmd("deagle","block");
	register_clcmd("nighthawk","block");
	register_clcmd("sg552","block");
	register_clcmd("krieg552","block");   
	register_clcmd("ak47","block");
	register_clcmd("cv47","block");                       
	register_clcmd("p90","block");
	register_clcmd("c90","block");
	register_clcmd("primammo","block");
	register_clcmd("secammo","block");
	register_clcmd("vest","block");
	register_clcmd("vesthelm","block");
	register_clcmd("nvgs","block");
}

public block(id)
{
	if(Active)
	{
		client_print(id,print_center,"Nie tym razem");
		return PLUGIN_HANDLED;
	}
	return PLUGIN_CONTINUE;
}

public setWeapons()
{
	new ent=-1;
	do
{
	ent=engfunc(EngFunc_FindEntityByString, ent,"classname", "armoury_entity");
	if(pev_valid( ent ))
	{
		set_pev(ent, pev_solid, (Active)?SOLID_NOT:1);
		fm_set_rendering(ent,kRenderFxNone, 0,0,0, kRenderTransTexture,(Active)?0:255);
	}
}
while(ent);
}

play(id,const sound[])
{
new end=strlen(sound)-4;
if(containi(sound,".mp3") == end && end>0)
client_cmd(id,"mp3 play sound/%s",sound);
else if(containi(sound,".wav") == end && end>0)
	client_cmd(id, "spk sound/%s",sound);
	else
		client_cmd(id, "speak %s",sound);
}

  • +
  • -
  • 0

#6 Dudix

    Zaawansowany

  • Użytkownik

Reputacja: 28
Życzliwy

  • Postów:101
  • Steam:steam
  • Imię:Kamil
  • Lokalizacja:Internet
Offline

Napisano 08.09.2009 15:43

Mochi, dobrze mowisz ;)
mis robi dla mnie ten plugin wiec testowalem Twoj kod. Miedzy 3 moimi dzwiekami przy odtwarzaniu jest malutenka przerwa, ale to nie pasuje. odliczanie musi byc w jednym pliku mp3. Mowiac o lagu to jest. U mnie zawiesil sie spam w sayu. Pojawila sie tylko czesc tekstow.
  • +
  • -
  • 0





Również z jednym lub większą ilością słów kluczowych: Modyfikacja

Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych