Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Last Round


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

#1 hax

    Profesjonalista

  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:200
  • Lokalizacja:...
Offline

Napisano 29.10.2009 20:28

Mam oto ten kod, no i problem bo nie wyświetla informacji.

ustawione mam

mp_winlimit 12

/*
*
* bAnTAi - Last Round / mod by Czesio
* (c) 2004-2005
*
*/


#include <amxmodx>

#pragma semicolon 1 // force ; usage, just 'cause

new g_scTitle[] = "Last Round";
new g_scVersion[] = "C1.0";
new g_scAuthor[] = "bAnTAi & Czesio";

new bool:g_lastround = false;
new bool:g_changemap = false;
new Float:g_timelimit = 0.0;
new Float:g_maxspeed;

#define INITIATE_LAST_ROUND_TASK 545454
#define CHANGE_MAP_TASK 545455
#define DISABLE_PLAYERS_TASK 545456

public evRoundStart() {
if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;

// Wanted this in init but never got a value
if (g_timelimit == 0.0)
g_timelimit = get_cvar_float("mp_timelimit");

if (g_lastround) {
new Float:roundtime = get_cvar_float("mp_roundtime");
new Float:c4timer = get_cvar_float("mp_c4timer")/60;
// Extend the maps time one round + c4timer + some buffer
set_cvar_float("mp_timelimit", g_timelimit + roundtime + c4timer + 10);

new text[256];
format(text, 255, "To jest ostatnia runda!");
doTypesay(text, 5, 150, 150, 150);

g_changemap = true;
g_lastround = false;
} else if (g_changemap) {
new nextmap[32];
get_cvar_string("amx_nextmap", nextmap, 31);

new text[256];
format(text, 255, "dzięki za gre <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> Teraz idziemy na %s...", nextmap);
doTypesay(text, 5, 150, 150, 150);

g_maxspeed = get_cvar_float("sv_maxspeed");
set_cvar_float("sv_maxspeed", 0.0);

set_task(0.1, "disablePlayers", DISABLE_PLAYERS_TASK, "", 0, "a", 3);
set_task(1.0, "lastRoundReklama", 9452);
set_task(6.0, "changeMap", CHANGE_MAP_TASK);
}

return PLUGIN_CONTINUE;
}
public lastRoundReklama(){
set_hudmessage(150, 150, 150, 0.05, 0.39, 0, 6.0, 5.0 , 0.5, 0.5, 3);
show_hudmessage(0, "Po grze zapraszamy na adresstrony.pl");
}
public lastRoundPrepare(){
g_lastround = true;
}

public initiateLastRound() {
if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;
remove_task(INITIATE_LAST_ROUND_TASK);

new text[256];
format(text, 255, "Zaraz bedzie ostatnia runda.");
doTypesay(text, 5, 150, 150, 150);

new Float:roundtime = get_cvar_float("mp_roundtime");
new Float:c4timer = get_cvar_float("mp_c4timer")/60;

// (2* roundtime since it is possible that the even occurs at the beginning of a round) +15 //TG_EDIT
set_cvar_float("mp_timelimit", g_timelimit + (2.0*roundtime) + (2.0*c4timer) + 10);

set_task(8.0, "lastRoundPrepare", 9453);

return PLUGIN_CONTINUE;
}
public disablePlayers() {
new players[32], num;
get_players(players, num, "c");
for(new i=0;i<num; i++) {
client_cmd(players[i],"drop");
}
}

public changeMap() {
remove_task(CHANGE_MAP_TASK);

new nextmap[32];
get_cvar_string("amx_nextmap", nextmap, 31);
server_cmd("changelevel %s", nextmap);
}

doTypesay(string[], duration, r, g, b, efect=0) {
set_hudmessage(r, g, b, 0.05, 0.35, efect, 6.0, float(duration) , 0.5, 0.5, 4);
show_hudmessage(0, string);
}

public plugin_init() {
register_plugin(g_scTitle, g_scVersion, g_scAuthor);

register_cvar("lastround", "1");
register_logevent("evRoundStart", 2, "0=World triggered", "1=Round_Start");

// Chose 90 seconds not to clash with other events
set_task(90.0, "initiateLastRound", INITIATE_LAST_ROUND_TASK, "", 0, "d");

return PLUGIN_CONTINUE;
}

public plugin_end() {
set_cvar_float("mp_timelimit", g_timelimit);
set_cvar_float("sv_maxspeed", g_maxspeed);

remove_task(DISABLE_PLAYERS_TASK);

return PLUGIN_CONTINUE;
}

  • +
  • -
  • 0

#2 Grycuk

    Zaawansowany

  • Użytkownik

Reputacja: 16
Początkujący

  • Postów:113
  • GG:
  • Steam:steam
  • Imię:Kamil
  • Lokalizacja:Minsk Mazowiecki
Offline

Napisano 30.10.2009 18:22

sprawdz może wersja 2 bedzie Ci działac
#include <amxmodx>



#pragma semicolon                1      

    

new g_scTitle[]   = "Last Round";

new g_scVersion[] = "2.0";

new g_scAuthor[]  = "many";

    

new bool:g_lastround = false;

new bool:g_changemap = false;

new Float:g_timelimit = 0.0;

new Float:g_maxspeed;



#define INITIATE_LAST_ROUND_TASK 545454

#define CHANGE_MAP_TASK 545455

#define DISABLE_PLAYERS_TASK 545456



public evRoundStart() {

	if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;



	// Wanted this in init but never got a value 

	if (g_timelimit == 0.0)

		g_timelimit = get_cvar_float("mp_timelimit");



	if (g_lastround) {

	        set_cvar_float("mp_timelimit", 0.0);

					

		new text[256];

		format(text, 255, "This is the final round");

		doTypesay(text, 5, 255, 255, 255);



		g_changemap = true;

		g_lastround = false;

	} else if (g_changemap) {

		new nextmap[32];

	        get_cvar_string("amx_nextmap", nextmap, 31);

	

		new text[256];

		format(text, 255, "Thank you for playing. Now switching to %s!", nextmap);

		doTypesay(text, 5, 255, 255, 255);



		g_maxspeed = get_cvar_float("sv_maxspeed");

		set_cvar_float("sv_maxspeed", 0.0);



                set_task(0.1, "disablePlayers", DISABLE_PLAYERS_TASK, "", 0, "a", 4);

                set_task(6.0, "changeMap", CHANGE_MAP_TASK);

	}



        return PLUGIN_CONTINUE;

}



public initiateLastRound() {

	if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;



	remove_task(INITIATE_LAST_ROUND_TASK);



	new text[256];

	format(text, 255, "The final round is coming up");

        doTypesay(text, 5, 255, 255, 255);



	set_cvar_float("mp_timelimit", 0.0);



	g_lastround = true;



	return PLUGIN_CONTINUE;

}



public disablePlayers() {

        new players[32], num;

        get_players(players, num, "c");

        for(new i=0;i<num; i++) {

		client_cmd(players[i],"hud_fastswitch 1");

		client_cmd(players[i],"slot1");

		client_cmd(players[i],"drop");

		client_cmd(players[i],"slot2");

		client_cmd(players[i],"drop");

		client_cmd(players[i],"slot5");

		client_cmd(players[i],"drop");

}



	register_clcmd("galil", "cmdBlock");

	register_clcmd("defender", "cmdBlock");

	register_clcmd("ak47", "cmdBlock");

	register_clcmd("cv47", "cmdBlock");

	register_clcmd("scout", "cmdBlock");

	register_clcmd("sg552", "cmdBlock");

	register_clcmd("krieg552", "cmdBlock");

	register_clcmd("awp", "cmdBlock");

	register_clcmd("magnum", "cmdBlock");

	register_clcmd("g3sg1", "cmdBlock");

	register_clcmd("d3au1", "cmdBlock");

	register_clcmd("famas", "cmdBlock");

	register_clcmd("clarion", "cmdBlock");

	register_clcmd("m4a1", "cmdBlock");

	register_clcmd("aug", "cmdBlock");

	register_clcmd("bullpup", "cmdBlock");

	register_clcmd("sg550", "cmdBlock");

	register_clcmd("krieg550", "cmdBlock");

	register_clcmd("glock", "cmdBlock");

	register_clcmd("9x19mm", "cmdBlock");

	register_clcmd("usp", "cmdBlock");

	register_clcmd("km45", "cmdBlock");

	register_clcmd("p228", "cmdBlock");

	register_clcmd("228compact", "cmdBlock");

	register_clcmd("deagle", "cmdBlock");

	register_clcmd("nighthawk", "cmdBlock");

	register_clcmd("elites", "cmdBlock");

	register_clcmd("fn57", "cmdBlock");

	register_clcmd("fiveseven", "cmdBlock");

	register_clcmd("m3", "cmdBlock");

	register_clcmd("12gauge", "cmdBlock");

	register_clcmd("xm1014", "cmdBlock");

	register_clcmd("autoshotgun", "cmdBlock");

	register_clcmd("mac10", "cmdBlock");

	register_clcmd("tmp", "cmdBlock");

	register_clcmd("mp", "cmdBlock");

	register_clcmd("mp5", "cmdBlock");

	register_clcmd("smg", "cmdBlock");

	register_clcmd("ump45", "cmdBlock");

	register_clcmd("p90", "cmdBlock");

	register_clcmd("c90", "cmdBlock");

	register_clcmd("m249", "cmdBlock");

	register_clcmd("primammo", "cmdBlock");

	register_clcmd("secammo", "cmdBlock");

	register_clcmd("vest", "cmdBlock");

	register_clcmd("vesthelm", "cmdBlock");

	register_clcmd("flash", "cmdBlock");

	register_clcmd("hegren", "cmdBlock");

	register_clcmd("sgren", "cmdBlock");

	register_clcmd("nvgs", "cmdBlock");

	register_clcmd("defuser", "cmdBlock");

	register_clcmd("shield", "cmdBlock");

	register_clcmd("buyammo1", "cmdBlock");

	register_clcmd("buyammo2", "cmdBlock");

	register_clcmd("impulse 201", "cmdBlock");

	register_clcmd("jointeam 1", "cmdBlock");

	register_clcmd("chooseteam", "cmdBlock");

	register_clcmd("buy", "cmdBlock");

	register_clcmd("buyammo1", "cmdBlock");

	register_clcmd("buyammo2", "cmdBlock");

	register_clcmd("buyequip", "cmdBlock");

	register_clcmd("cl_autobuy", "cmdBlock");

	register_clcmd("cl_rebuy", "cmdBlock");

	register_clcmd("cl_setautobuy", "cmdBlock");

	register_clcmd("cl_setrebuy", "cmdBlock");

	register_clcmd("fullupdate", "cmdBlock");

	register_clcmd("radio1", "cmdBlock");

	register_clcmd("radio2", "cmdBlock");

	register_clcmd("radio3", "cmdBlock");

	register_clcmd("coverme", "cmdBlock");

	register_clcmd("takepoint", "cmdBlock");

	register_clcmd("holdpos", "cmdBlock");

	register_clcmd("regroup", "cmdBlock");

	register_clcmd("followme", "cmdBlock");

	register_clcmd("takingfire", "cmdBlock");

	register_clcmd("go", "cmdBlock");

	register_clcmd("fallback", "cmdBlock");

	register_clcmd("sticktog", "cmdBlock");

	register_clcmd("getinpos", "cmdBlock");

	register_clcmd("stormfront", "cmdBlock");

	register_clcmd("report", "cmdBlock");

	register_clcmd("roger", "cmdBlock");

	register_clcmd("enemyspot", "cmdBlock");

	register_clcmd("needbackup", "cmdBlock");

	register_clcmd("sectorclear", "cmdBlock");

	register_clcmd("inposition", "cmdBlock");

	register_clcmd("reportingin", "cmdBlock");

	register_clcmd("getout", "cmdBlock");

	register_clcmd("negative", "cmdBlock");

	register_clcmd("enemydown", "cmdBlock");

}



public changeMap() {

	remove_task(CHANGE_MAP_TASK);



        new nextmap[32];

        get_cvar_string("amx_nextmap", nextmap, 31);

        server_cmd("changelevel %s", nextmap);

}



doTypesay(string[], duration, r, g, <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.gif' class='bbc_emoticon' alt='B)' /> {

        set_hudmessage(r, g, b, 0.05, 0.45, 0, 6.0, float(duration) , 0.5, 0.15, 4);

        show_hudmessage(0, string);

}

					

public plugin_init() {

        register_plugin(g_scTitle, g_scVersion, g_scAuthor);



        register_cvar("lastround", "1");

	register_logevent("evRoundStart", 2, "0=World triggered", "1=Round_Start");



	// Chose 90 seconds not to clash with other events

	set_task(90.0, "initiateLastRound", INITIATE_LAST_ROUND_TASK, "", 0, "d");



	return PLUGIN_CONTINUE;

}



public cmdBlock(id)

{

	if (g_changemap)

		return PLUGIN_HANDLED;



	return PLUGIN_CONTINUE;

}





public plugin_end() {

	set_cvar_float("mp_timelimit", g_timelimit);

	set_cvar_float("sv_maxspeed", g_maxspeed);



	remove_task(DISABLE_PLAYERS_TASK);



	return PLUGIN_CONTINUE;

}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE

*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1049 f0 fs16 n par }

*/

  • +
  • -
  • 0

#3 hax

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:200
  • Lokalizacja:...
Offline

Napisano 30.10.2009 20:30

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Loose indentation on line 28
Warning: Loose indentation on line 36
Warning: Loose indentation on line 38
Warning: Loose indentation on line 45
Warning: Loose indentation on line 49
Warning: Loose indentation on line 59
Warning: Loose indentation on line 61
Warning: Loose indentation on line 81
Warning: Loose indentation on line 176
Warning: Loose indentation on line 190
Header size:            592 bytes
Code size:             9036 bytes
Data size:             7692 bytes
Stack/heap size:      16384 bytes; estimated max. usage=313 cells (1252 bytes)
Total requirements:   33704 bytes

10 Warnings.
Done.

No ale i tak nic nie pokazuje.
  • +
  • -
  • 0

#4 naven

    Hero

  • Power User

Reputacja: 200
Profesjonalista

  • Postów:1088
  • GG:
  • Imię:Adam
  • Lokalizacja:Cieszyn
Offline

Napisano 30.10.2009 20:41

#include <amxmodx>



#pragma semicolon                1     



new g_scTitle[]   = "Last Round";

new g_scVersion[] = "2.0";

new g_scAuthor[]  = "many";



new bool:g_lastround = false;

new bool:g_changemap = false;

new Float:g_timelimit = 0.0;

new Float:g_maxspeed;



#define INITIATE_LAST_ROUND_TASK 545454

#define CHANGE_MAP_TASK 545455

#define DISABLE_PLAYERS_TASK 545456



public evRoundStart() {

	if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;

	

	// Wanted this in init but never got a value

	if (g_timelimit == 0.0)

		g_timelimit = get_cvar_float("mp_timelimit");

	

	if (g_lastround) {

		set_cvar_float("mp_timelimit", 0.0);

		

		new text[256];

		format(text, 255, "This is the final round");

		doTypesay(text, 5, 255, 255, 255);

		

		g_changemap = true;

		g_lastround = false;

		} else if (g_changemap) {

		new nextmap[32];

		get_cvar_string("amx_nextmap", nextmap, 31);

		

		new text[256];

		format(text, 255, "Thank you for playing. Now switching to %s!", nextmap);

		doTypesay(text, 5, 255, 255, 255);

		

		g_maxspeed = get_cvar_float("sv_maxspeed");

		set_cvar_float("sv_maxspeed", 0.0);

		

		set_task(0.1, "disablePlayers", DISABLE_PLAYERS_TASK, "", 0, "a", 4);

		set_task(6.0, "changeMap", CHANGE_MAP_TASK);

	}

	

	return PLUGIN_CONTINUE;

}



public initiateLastRound() {

	if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE;

	

	remove_task(INITIATE_LAST_ROUND_TASK);

	

	new text[256];

	format(text, 255, "The final round is coming up");

	doTypesay(text, 5, 255, 255, 255);

	

	set_cvar_float("mp_timelimit", 0.0);

	

	g_lastround = true;

	

	return PLUGIN_CONTINUE;

}



public disablePlayers() {

	new players[32], num;

	get_players(players, num, "c");

	for(new i=0;i<num; i++) {

		client_cmd(players[i],"hud_fastswitch 1");

		client_cmd(players[i],"slot1");

		client_cmd(players[i],"drop");

		client_cmd(players[i],"slot2");

		client_cmd(players[i],"drop");

		client_cmd(players[i],"slot5");

		client_cmd(players[i],"drop");

	}

	

	register_clcmd("galil", "cmdBlock");

	register_clcmd("defender", "cmdBlock");

	register_clcmd("ak47", "cmdBlock");

	register_clcmd("cv47", "cmdBlock");

	register_clcmd("scout", "cmdBlock");

	register_clcmd("sg552", "cmdBlock");

	register_clcmd("krieg552", "cmdBlock");

	register_clcmd("awp", "cmdBlock");

	register_clcmd("magnum", "cmdBlock");

	register_clcmd("g3sg1", "cmdBlock");

	register_clcmd("d3au1", "cmdBlock");

	register_clcmd("famas", "cmdBlock");

	register_clcmd("clarion", "cmdBlock");

	register_clcmd("m4a1", "cmdBlock");

	register_clcmd("aug", "cmdBlock");

	register_clcmd("bullpup", "cmdBlock");

	register_clcmd("sg550", "cmdBlock");

	register_clcmd("krieg550", "cmdBlock");

	register_clcmd("glock", "cmdBlock");

	register_clcmd("9x19mm", "cmdBlock");

	register_clcmd("usp", "cmdBlock");

	register_clcmd("km45", "cmdBlock");

	register_clcmd("p228", "cmdBlock");

	register_clcmd("228compact", "cmdBlock");

	register_clcmd("deagle", "cmdBlock");

	register_clcmd("nighthawk", "cmdBlock");

	register_clcmd("elites", "cmdBlock");

	register_clcmd("fn57", "cmdBlock");

	register_clcmd("fiveseven", "cmdBlock");

	register_clcmd("m3", "cmdBlock");

	register_clcmd("12gauge", "cmdBlock");

	register_clcmd("xm1014", "cmdBlock");

	register_clcmd("autoshotgun", "cmdBlock");

	register_clcmd("mac10", "cmdBlock");

	register_clcmd("tmp", "cmdBlock");

	register_clcmd("mp", "cmdBlock");

	register_clcmd("mp5", "cmdBlock");

	register_clcmd("smg", "cmdBlock");

	register_clcmd("ump45", "cmdBlock");

	register_clcmd("p90", "cmdBlock");

	register_clcmd("c90", "cmdBlock");

	register_clcmd("m249", "cmdBlock");

	register_clcmd("primammo", "cmdBlock");

	register_clcmd("secammo", "cmdBlock");

	register_clcmd("vest", "cmdBlock");

	register_clcmd("vesthelm", "cmdBlock");

	register_clcmd("flash", "cmdBlock");

	register_clcmd("hegren", "cmdBlock");

	register_clcmd("sgren", "cmdBlock");

	register_clcmd("nvgs", "cmdBlock");

	register_clcmd("defuser", "cmdBlock");

	register_clcmd("shield", "cmdBlock");

	register_clcmd("buyammo1", "cmdBlock");

	register_clcmd("buyammo2", "cmdBlock");

	register_clcmd("impulse 201", "cmdBlock");

	register_clcmd("jointeam 1", "cmdBlock");

	register_clcmd("chooseteam", "cmdBlock");

	register_clcmd("buy", "cmdBlock");

	register_clcmd("buyammo1", "cmdBlock");

	register_clcmd("buyammo2", "cmdBlock");

	register_clcmd("buyequip", "cmdBlock");

	register_clcmd("cl_autobuy", "cmdBlock");

	register_clcmd("cl_rebuy", "cmdBlock");

	register_clcmd("cl_setautobuy", "cmdBlock");

	register_clcmd("cl_setrebuy", "cmdBlock");

	register_clcmd("fullupdate", "cmdBlock");

	register_clcmd("radio1", "cmdBlock");

	register_clcmd("radio2", "cmdBlock");

	register_clcmd("radio3", "cmdBlock");

	register_clcmd("coverme", "cmdBlock");

	register_clcmd("takepoint", "cmdBlock");

	register_clcmd("holdpos", "cmdBlock");

	register_clcmd("regroup", "cmdBlock");

	register_clcmd("followme", "cmdBlock");

	register_clcmd("takingfire", "cmdBlock");

	register_clcmd("go", "cmdBlock");

	register_clcmd("fallback", "cmdBlock");

	register_clcmd("sticktog", "cmdBlock");

	register_clcmd("getinpos", "cmdBlock");

	register_clcmd("stormfront", "cmdBlock");

	register_clcmd("report", "cmdBlock");

	register_clcmd("roger", "cmdBlock");

	register_clcmd("enemyspot", "cmdBlock");

	register_clcmd("needbackup", "cmdBlock");

	register_clcmd("sectorclear", "cmdBlock");

	register_clcmd("inposition", "cmdBlock");

	register_clcmd("reportingin", "cmdBlock");

	register_clcmd("getout", "cmdBlock");

	register_clcmd("negative", "cmdBlock");

	register_clcmd("enemydown", "cmdBlock");

}



public changeMap() {

	remove_task(CHANGE_MAP_TASK);

	

	new nextmap[32];

	get_cvar_string("amx_nextmap", nextmap, 31);

	server_cmd("changelevel %s", nextmap);

}



doTypesay(string[], duration, r, g, <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.gif' class='bbc_emoticon' alt='B)' /> {

	set_hudmessage(r, g, b, 0.05, 0.45, 0, 6.0, float(duration) , 0.5, 0.15, 4);

	show_hudmessage(0, string);

}



public plugin_init() {

	register_plugin(g_scTitle, g_scVersion, g_scAuthor);

	

	register_cvar("lastround", "1");

	register_logevent("evRoundStart", 2, "0=World triggered", "1=Round_Start");

	

	// Chose 90 seconds not to clash with other events

	set_task(90.0, "initiateLastRound", INITIATE_LAST_ROUND_TASK, "", 0, "d");

	

	return PLUGIN_CONTINUE;

}



public cmdBlock(id)

{

	if (g_changemap)

		return PLUGIN_HANDLED;

	

	return PLUGIN_CONTINUE;

}





public plugin_end() {

	set_cvar_float("mp_timelimit", g_timelimit);

	set_cvar_float("sv_maxspeed", g_maxspeed);

	

	remove_task(DISABLE_PLAYERS_TASK);

	

	return PLUGIN_CONTINUE;

}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE

*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1049 f0 fs16 n par }

*/

  • +
  • -
  • 0

#5 hax

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:200
  • Lokalizacja:...
Offline

Napisano 30.10.2009 23:23

nie działa.

mam

mp_timelimit 0

mp_winlimit 12

;mapchooser.amxx

  • +
  • -
  • 0

#6 Grycuk

    Zaawansowany

  • Użytkownik

Reputacja: 16
Początkujący

  • Postów:113
  • GG:
  • Steam:steam
  • Imię:Kamil
  • Lokalizacja:Minsk Mazowiecki
Offline

Napisano 31.10.2009 13:39

nie wiem ja mam tak jak w kodzie i wszystko smiga.Jakieś zaczarowane te serwery macie ostatnimi czasami.
  • +
  • -
  • 0

#7 hax

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:200
  • Lokalizacja:...
Offline

Napisano 13.11.2009 10:31

Nawet na Dedicated Server nie wyświetla ... :]

Byłby ktoś w stanie napisać podobny plugin ?
  • +
  • -
  • 0

#8 Miczu

    Godlike

  • Przyjaciel

Reputacja: 646
Wszechmogący

  • Postów:2862
Offline

Napisano 13.11.2009 21:31

register_clcmd

powinno byc w
public plugin_init()

  • +
  • -
  • 0

#9 hax

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:200
  • Lokalizacja:...
Offline

Napisano 16.11.2009 16:52

register_clcmd

powinno byc w
public plugin_init()


:o nie wszyscy rozumieją
  • +
  • -
  • 0

#10 kasza

    Godlike

  • Przyjaciel

Reputacja: 887
Czempion

  • Postów:4102
  • GG:
  • Steam:steam
  • Imię:Imię
  • Lokalizacja:Lokalizacja
Offline

Napisano 02.12.2009 12:20

Przyłączam się do prośby hax'a.
  • +
  • -
  • 0

Skillownia.com

 

 #3 [UWC3NG] Skillownia.com - 213.189.52.253:27301

 


#11 DarkGL

    Nie oddam ciasteczka !

  • Administrator

Reputacja: 6033
Godlike

  • Postów:10831
  • GG:
  • Steam:steam
  • Imię:Rafał
  • Lokalizacja:Warszawa
Offline

Napisano 02.12.2009 15:35

#include <amxmodx> 



#pragma semicolon                1      



new g_scTitle[]   = "Last Round"; 

new g_scVersion[] = "2.0"; 

new g_scAuthor[]  = "many"; 



new bool:g_lastround = false; 

new bool:g_changemap = false; 

new Float:g_timelimit = 0.0; 

new Float:g_maxspeed; 



#define INITIATE_LAST_ROUND_TASK 545454 

#define CHANGE_MAP_TASK 545455 

#define DISABLE_PLAYERS_TASK 545456 



public evRoundStart() { 

    if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE; 

    

    // Wanted this in init but never got a value 

    if (g_timelimit == 0.0) 

        g_timelimit = get_cvar_float("mp_timelimit"); 

    

    if (g_lastround) { 

        set_cvar_float("mp_timelimit", 0.0); 

        

        new text[256]; 

        format(text, 255, "This is the final round"); 

        doTypesay(text, 5, 255, 255, 255); 

        

        g_changemap = true; 

        g_lastround = false; 

        } else if (g_changemap) { 

        new nextmap[32]; 

        get_cvar_string("amx_nextmap", nextmap, 31); 

        

        new text[256]; 

        format(text, 255, "Thank you for playing. Now switching to %s!", nextmap); 

        doTypesay(text, 5, 255, 255, 255); 

        

        g_maxspeed = get_cvar_float("sv_maxspeed"); 

        set_cvar_float("sv_maxspeed", 0.0); 

        

        set_task(0.1, "disablePlayers", DISABLE_PLAYERS_TASK, "", 0, "a", 4); 

        set_task(6.0, "changeMap", CHANGE_MAP_TASK); 

    } 

    

    return PLUGIN_CONTINUE; 

} 



public initiateLastRound() { 

    if (!get_cvar_num("lastround")) return PLUGIN_CONTINUE; 

    

    remove_task(INITIATE_LAST_ROUND_TASK); 

    

    new text[256]; 

    format(text, 255, "The final round is coming up"); 

    doTypesay(text, 5, 255, 255, 255); 

    

    set_cvar_float("mp_timelimit", 0.0); 

    

    g_lastround = true; 

    

    return PLUGIN_CONTINUE; 

} 



public disablePlayers() { 

    new players[32], num; 

    get_players(players, num, "c"); 

    for(new i=0;i<num; i++) { 

        client_cmd(players[i],"hud_fastswitch 1"); 

        client_cmd(players[i],"slot1"); 

        client_cmd(players[i],"drop"); 

        client_cmd(players[i],"slot2"); 

        client_cmd(players[i],"drop"); 

        client_cmd(players[i],"slot5"); 

        client_cmd(players[i],"drop"); 

    } 

} 



public changeMap() { 

    remove_task(CHANGE_MAP_TASK); 

    

    new nextmap[32]; 

    get_cvar_string("amx_nextmap", nextmap, 31); 

    server_cmd("changelevel %s", nextmap); 

} 



doTypesay(string[], duration, r, g, <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.gif' class='bbc_emoticon' alt='B)' /> { 

    set_hudmessage(r, g, b, 0.05, 0.45, 0, 6.0, float(duration) , 0.5, 0.15, 4); 

    show_hudmessage(0, string); 

} 



public plugin_init() { 

    register_plugin(g_scTitle, g_scVersion, g_scAuthor); 

    

    register_clcmd("galil", "cmdBlock"); 

    register_clcmd("defender", "cmdBlock"); 

    register_clcmd("ak47", "cmdBlock"); 

    register_clcmd("cv47", "cmdBlock"); 

    register_clcmd("scout", "cmdBlock"); 

    register_clcmd("sg552", "cmdBlock"); 

    register_clcmd("krieg552", "cmdBlock"); 

    register_clcmd("awp", "cmdBlock"); 

    register_clcmd("magnum", "cmdBlock"); 

    register_clcmd("g3sg1", "cmdBlock"); 

    register_clcmd("d3au1", "cmdBlock"); 

    register_clcmd("famas", "cmdBlock"); 

    register_clcmd("clarion", "cmdBlock"); 

    register_clcmd("m4a1", "cmdBlock"); 

    register_clcmd("aug", "cmdBlock"); 

    register_clcmd("bullpup", "cmdBlock"); 

    register_clcmd("sg550", "cmdBlock"); 

    register_clcmd("krieg550", "cmdBlock"); 

    register_clcmd("glock", "cmdBlock"); 

    register_clcmd("9x19mm", "cmdBlock"); 

    register_clcmd("usp", "cmdBlock"); 

    register_clcmd("km45", "cmdBlock"); 

    register_clcmd("p228", "cmdBlock"); 

    register_clcmd("228compact", "cmdBlock"); 

    register_clcmd("deagle", "cmdBlock"); 

    register_clcmd("nighthawk", "cmdBlock"); 

    register_clcmd("elites", "cmdBlock"); 

    register_clcmd("fn57", "cmdBlock"); 

    register_clcmd("fiveseven", "cmdBlock"); 

    register_clcmd("m3", "cmdBlock"); 

    register_clcmd("12gauge", "cmdBlock"); 

    register_clcmd("xm1014", "cmdBlock"); 

    register_clcmd("autoshotgun", "cmdBlock"); 

    register_clcmd("mac10", "cmdBlock"); 

    register_clcmd("tmp", "cmdBlock"); 

    register_clcmd("mp", "cmdBlock"); 

    register_clcmd("mp5", "cmdBlock"); 

    register_clcmd("smg", "cmdBlock"); 

    register_clcmd("ump45", "cmdBlock"); 

    register_clcmd("p90", "cmdBlock"); 

    register_clcmd("c90", "cmdBlock"); 

    register_clcmd("m249", "cmdBlock"); 

    register_clcmd("primammo", "cmdBlock"); 

    register_clcmd("secammo", "cmdBlock"); 

    register_clcmd("vest", "cmdBlock"); 

    register_clcmd("vesthelm", "cmdBlock"); 

    register_clcmd("flash", "cmdBlock"); 

    register_clcmd("hegren", "cmdBlock"); 

    register_clcmd("sgren", "cmdBlock"); 

    register_clcmd("nvgs", "cmdBlock"); 

    register_clcmd("defuser", "cmdBlock"); 

    register_clcmd("shield", "cmdBlock"); 

    register_clcmd("buyammo1", "cmdBlock"); 

    register_clcmd("buyammo2", "cmdBlock"); 

    register_clcmd("impulse 201", "cmdBlock"); 

    register_clcmd("jointeam 1", "cmdBlock"); 

    register_clcmd("chooseteam", "cmdBlock"); 

    register_clcmd("buy", "cmdBlock"); 

    register_clcmd("buyammo1", "cmdBlock"); 

    register_clcmd("buyammo2", "cmdBlock"); 

    register_clcmd("buyequip", "cmdBlock"); 

    register_clcmd("cl_autobuy", "cmdBlock"); 

    register_clcmd("cl_rebuy", "cmdBlock"); 

    register_clcmd("cl_setautobuy", "cmdBlock"); 

    register_clcmd("cl_setrebuy", "cmdBlock"); 

    register_clcmd("fullupdate", "cmdBlock"); 

    register_clcmd("radio1", "cmdBlock"); 

    register_clcmd("radio2", "cmdBlock"); 

    register_clcmd("radio3", "cmdBlock"); 

    register_clcmd("coverme", "cmdBlock"); 

    register_clcmd("takepoint", "cmdBlock"); 

    register_clcmd("holdpos", "cmdBlock"); 

    register_clcmd("regroup", "cmdBlock"); 

    register_clcmd("followme", "cmdBlock"); 

    register_clcmd("takingfire", "cmdBlock"); 

    register_clcmd("go", "cmdBlock"); 

    register_clcmd("fallback", "cmdBlock"); 

    register_clcmd("sticktog", "cmdBlock"); 

    register_clcmd("getinpos", "cmdBlock"); 

    register_clcmd("stormfront", "cmdBlock"); 

    register_clcmd("report", "cmdBlock"); 

    register_clcmd("roger", "cmdBlock"); 

    register_clcmd("enemyspot", "cmdBlock"); 

    register_clcmd("needbackup", "cmdBlock"); 

    register_clcmd("sectorclear", "cmdBlock"); 

    register_clcmd("inposition", "cmdBlock"); 

    register_clcmd("reportingin", "cmdBlock"); 

    register_clcmd("getout", "cmdBlock"); 

    register_clcmd("negative", "cmdBlock"); 

    register_clcmd("enemydown", "cmdBlock"); 

    register_cvar("lastround", "1"); 

    register_logevent("evRoundStart", 2, "0=World triggered", "1=Round_Start"); 

    

    // Chose 90 seconds not to clash with other events 

    set_task(90.0, "initiateLastRound", INITIATE_LAST_ROUND_TASK, "", 0, "d"); 

    

    return PLUGIN_CONTINUE; 

} 



public cmdBlock(id) 

{ 

    if (g_changemap) 

        return PLUGIN_HANDLED; 

    

    return PLUGIN_CONTINUE; 

} 





public plugin_end() { 

    set_cvar_float("mp_timelimit", g_timelimit); 

    set_cvar_float("sv_maxspeed", g_maxspeed); 

    

    remove_task(DISABLE_PLAYERS_TASK); 

    

    return PLUGIN_CONTINUE; 

} 

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE 

*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1049 f0 fs16 n par } 

*/

  • +
  • -
  • 0




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

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