Mr12 v2.
Exeus 27.12.2012
Potrzebuje Pluginu na mr12
tzn
1 Gramy sobie nozowke,
2 rozgrywamy 12 rund
3 plug daje ct do tt a tt do ct
4 1 restart napis Game live
5 odnowa gramy do 12
6 i teraz nowa mapa według np mapcycls albo czegos innego.
miałem cos takiego +/- działalo pozniej ten user go
zaaktualizowal plug i niedzialal
a starego nie mam
Przykłady tego co ten ziomek dał
i Ustawienie
Jak uruchomic
pokazywanie ile dostalismy ile zadalismy w kogo etc.
pod koniec rundy
w ustawieniach statstyk
mialem to wczoraj ale chyba niektore opcje wplywaja na siebie offam 1 i druga niedziala
help.
Repp_+_
tzn
1 Gramy sobie nozowke,
2 rozgrywamy 12 rund
3 plug daje ct do tt a tt do ct
4 1 restart napis Game live
5 odnowa gramy do 12
6 i teraz nowa mapa według np mapcycls albo czegos innego.
miałem cos takiego +/- działalo pozniej ten user go
zaaktualizowal plug i niedzialal
a starego nie mam
Przykłady tego co ten ziomek dał
Do sprawdzenia
#include <amxmodx>
#include <cstrike>
new maxPlayers;
new runda;
new bool:restart;
public plugin_init()
{
register_plugin("Zmiana", "1.0", "FD_GODPL");
register_event("HLTV", "NewRound", "a", "1=0", "2=0");
register_logevent("Restart", 2, "1=Game_Commencing");
}
public plugin_cfg()
maxPlayers = get_maxplayers();
public NewRound()
{
if(restart)
{
server_cmd("amx_cvar sv_restartround 0");
restart = false;
return PLUGIN_CONTINUE;
}
runda++;
switch(runda)
{
case 13: ChangeTeam();
case 25: ZmienMape();
}
return PLUGIN_CONTINUE;
}
public ZmienMape()
{
new mapa[30];
get_cvar_string("amx_nextmap", mapa, charsmax(mapa));
server_cmd("changelevel %s", mapa);
}
public Restart()
runda = 0;
public ChangeTeam()
{
for(new i=1;i<=maxPlayers;i++)
{
if(!is_user_connected(i) || cs_get_user_team(i) == CS_TEAM_SPECTATOR || cs_get_user_team(i) == CS_TEAM_UNASSIGNED)
continue;
cs_set_user_team(i, cs_get_user_team(i) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T);
cs_user_spawn(i);
}
server_cmd("amx_cvar sv_restartround 1");
restart = true;
return PLUGIN_CONTINUE
}
Do sprawdzenia
#include <amxmodx>U mnie mapa zmienia się normalnie sprawdźcie czy macie włączony plugin nextmap.amxx, jeśli dalej nie działa podajcie error logi.
#include <cstrike>
new maxPlayers;
new runda;
new wygrane_ct;
new wygrane_tt;
new ilosc_reset;
public plugin_init()
{
register_plugin("Zmiana", "1.0", "FD_GODPL");
register_event("HLTV", "NewRound", "a", "1=0", "2=0");
register_logevent("Restart", 2, "1=Game_Commencing");
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
register_logevent("ShowScore", 2, "1=Round_Start");
}
public ct_win()
wygrane_ct++;
public t_win()
wygrane_tt++;
public plugin_cfg()
maxPlayers = get_maxplayers();
public ShowScore()
{
if(runda == 14)
info();
}
public info()
{
for(new i=1;i<=maxPlayers;i++)
{
set_hudmessage(255, 255, 255, 0.57, 0.17, 2, 6.0, 5.0, 0.1, 0.2, -1)
show_hudmessage(i, "Wyniki Po 12 Rundach Nastepujace: TT - %d, CT - %d", wygrane_tt, wygrane_ct);
}
wygrane_ct = 0;
wygrane_tt = 0;
}
public NewRound()
{
runda++;
switch(runda)
{
case 13: ChangeTeam();
case 26: ZmienMape();
}
return PLUGIN_CONTINUE;
}
public ZmienMape()
{
new mapa[30];
get_cvar_string("amx_nextmap", mapa, charsmax(mapa));
server_cmd("changelevel %s", mapa);
}
public Restart()
runda = 0;
public ChangeTeam()
{
for(new i=1;i<=maxPlayers;i++)
{
if(!is_user_connected(i) || cs_get_user_team(i) == CS_TEAM_SPECTATOR || cs_get_user_team(i) == CS_TEAM_UNASSIGNED)
continue;
cs_set_user_team(i, cs_get_user_team(i) == CS_TEAM_T ? CS_TEAM_CT : CS_TEAM_T);
cs_user_spawn(i);
}
set_task(1.0, "Resetuj", _, _, _, "b");
ilosc_reset = 4;
return PLUGIN_CONTINUE
}
public Resetuj()
{
ilosc_reset--;
set_cvar_num("sv_restartround", 1);
if(ilosc_reset <= 0)
{
remove_task(0);
set_cvar_num("sv_restartround", 0);
client_print(0, print_chat, "[----GAME LIVE !----]");
runda = 13;
return PLUGIN_CONTINUE
}
client_print(0, print_chat, "[----Gramy po %d resetach----]", ilosc_reset);
return PLUGIN_CONTINUE
}
i Ustawienie
Jak uruchomic
pokazywanie ile dostalismy ile zadalismy w kogo etc.
pod koniec rundy
w ustawieniach statstyk
mialem to wczoraj ale chyba niektore opcje wplywaja na siebie offam 1 i druga niedziala
help.
Repp_+_