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

Problem z crazy_restart


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

#1 xWILKx

    Początkujący

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:18
Offline

Napisano 22.03.2009 11:12

Czesc, mam problem z pluginem crazy_restart. Wczoraj wszystko pieknie dzialo - dzisiaj niestety nie. Wszyscy powinni miec uzi, zas nie ktorzy dostaja glocka, cvary sa dobrze napisane, do plugins.ini dopisane crazy_restart.amxx debug
w logach pisze
: L 03/22/2009 - 10:14:05: [AMXX] Displaying debug trace (plugin "crazy_restart.amxx")
L 03/22/2009 - 10:14:05: [AMXX] Run time error 10: native error (native "give_item")
L 03/22/2009 - 10:14:05: [AMXX]    [0] crazy_restart.sma::ammo (line 118)

Help ;)
  • +
  • -
  • 0

#2 GoForIT

    Zaawansowany

  • Użytkownik

Reputacja: 19
Początkujący

  • Postów:99
  • GG:
  • Lokalizacja:z Nienacka
Offline

Napisano 22.03.2009 11:30

Pokaz sma
  • +
  • -
  • 0

#3 xWILKx

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:18
Offline

Napisano 22.03.2009 11:42

#include <amxmodx>

#include <fun>



new bool:isrestart = false

new timer



public plugin_init()

{

  register_plugin("Crazy Restart", "4.8", "Salamon")



  register_event("TextMsg","start","a","2&#Game_C")

   

  register_cvar("crazy_restart","1")

  register_cvar("crazy_restart_time","45")

  register_cvar("crazy_restart_weapon","weapon_deagle")



  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("glock","block")

  register_clcmd("usp","block")

  register_clcmd("p228","block")

  register_clcmd("deagle","block")

  register_clcmd("elites","block")

  register_clcmd("fn57","block")

  register_clcmd("m3","block")

  register_clcmd("autoshotgun","block")

  register_clcmd("mac10","block")

  register_clcmd("tmp","block")

  register_clcmd("mp5","block")

  register_clcmd("ump45","block")

  register_clcmd("p90","block")

  register_clcmd("galil","block")

  register_clcmd("ak47","block")

  register_clcmd("scout","block")

  register_clcmd("sg552","block")

  register_clcmd("awp","block")

  register_clcmd("g3sg1","block")

  register_clcmd("famas","block")

  register_clcmd("m4a1","block")

  register_clcmd("bullpup","block")

  register_clcmd("sg550","block")

  register_clcmd("m249","block")

  register_clcmd("shield","block")

  register_clcmd("primammo","block")

  register_clcmd("secammo","block")

  register_clcmd("vest","block")

  register_clcmd("vesthelm","block")

  register_clcmd("flash","block")

  register_clcmd("hegren","block")

  register_clcmd("sgren","block")

  register_clcmd("nvgs","block")



  register_clcmd("weapon_knife", "block")

  register_clcmd("weapon_sg550", "block")

  register_clcmd("weapon_mac10", "block")

  register_clcmd("weapon_aug", "block")

  register_clcmd("weapon_xm1014", "block")

  register_clcmd("weapon_p90", "block")

  register_clcmd("weapon_c4", "block")

  register_clcmd("weapon_tmp", "block")

  register_clcmd("weapon_mp5navy", "block")

  register_clcmd("weapon_ump45", "block")

  register_clcmd("weapon_m4a1", "block")

  register_clcmd("weapon_awp", "block")

  register_clcmd("weapon_g3sg1", "block")

  register_clcmd("weapon_sg552", "block")

  register_clcmd("weapon_scout", "block")

  register_clcmd("weapon_m3", "block")

  register_clcmd("weapon_m249", "block")

  register_clcmd("weapon_ak47", "block")

  register_clcmd("weapon_fiveseven", "block")

  register_clcmd("weapon_usp", "block")

  register_clcmd("weapon_glock18", "block")

  register_clcmd("weapon_deagle", "block")

  register_clcmd("weapon_p228", "block")

  register_clcmd("weapon_elite", "block")

  register_clcmd("weapon_flashbang", "block")

  register_clcmd("weapon_hegrenade", "block")

  register_clcmd("weapon_smokegrenade", "block")



  register_clcmd("lastinv", "block")

}



public start()

{

  timer = get_cvar_num("crazy_restart_time")



  new Float:res_time = get_cvar_float("crazy_restart_time")



  if(get_cvar_num("crazy_restart") == 1)

   {

    isrestart = true



//dodajemy pluginy ktore chcemy zatrzymac na czas rundy nozowej

//a robimy to w nastepujacy sposob

//server_cmd("amx_pausecfg pause nazwa_pluginu.amxx")

//server_cmd("amx_pausecfg pause nazwa_pluginu2.amxx")

//dopisujemy te pluginy ktore chcemy zatrzymac i te same spowrotem

//wlaczamy nizej



    set_task(res_time + 1, "end")

    set_task(1.0, "count_me", 123, _, _, "b")

    set_task(4.0, "ammo", 123, _, _, "b")

   }

}



public ammo()

{

  new weapon[192]

  get_cvar_string("crazy_restart_weapon", weapon, 191)



  for(new i = 1; i <= get_playersnum(); i++)

  {

  give_item(i, weapon)

  engclient_cmd(i, weapon)

  }

}



public end()

{

 isrestart = false



 remove_task(123)



//tu spowrotem wlaczamy pluginy ktore zatrzymalismy wyzej

//server_cmd("amx_pausecfg enable nazwa_pluginu.amxx")

//server_cmd("amx_pausecfg enable nazwa_pluginu2.amxx")

//robimy tak z kazdym, a jak widac jedyne co sie zmienia to enable



 set_cvar_num("sv_restartround",1)

}



public count_me()

{

    new red = random_num(5,255)

    new green = random_num(5,255)

    new blue = random_num(5,255)  



    set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)

    show_hudmessage(0,"******************************^n Restart za %i sekund ^n******************************", timer)



    if(timer == 3)

    {

    client_cmd(0, "spk vox/three.wav")

    }

    if(timer == 2)

    {

    client_cmd(0, "spk vox/two.wav")

    }

    if(timer == 1)

    {

    client_cmd(0, "spk vox/one.wav")

    }

    timer--

}



public block(id)

{

    if(isrestart)

        return PLUGIN_HANDLED

   

    return PLUGIN_CONTINUE

}

  • +
  • -
  • 0

#4 Snickers

    Życzliwy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:25
Offline

Napisano 25.03.2009 18:49

Refresh, mam ten sam błąd :)
  • +
  • -
  • 0

#5 TiTu$

    Czempion

  • Użytkownik

Reputacja: 139
Zaawansowany

  • Postów:817
  • GG:
  • Lokalizacja:Rzeszów
Offline

Napisano 25.03.2009 21:12

a skopiowałeś to i zkomplikowałeś i wrzuciłeś na serwer? ^^ bo byli tacy co zmieniali na serwie w sma i zapisywali i mówili że nie działa ^^
  • +
  • -
  • 0

#6 loleN

    Profesjonalista

  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:157
  • Steam:steam
  • Lokalizacja:Częstochowa
Offline

Napisano 26.03.2009 00:15

a skopiowałeś to i zkomplikowałeś i wrzuciłeś na serwer? ^^ bo byli tacy co zmieniali na serwie w sma i zapisywali i mówili że nie działa ^^


Weź ogarnii, nie nabij postów i przeczytaj 1 post..

Zobacz tak~~

#include <amxmodx>
#include <fun>

new bool:isrestart = false
new timer

public plugin_init()
{
  register_plugin("Crazy Restart", "4.8", "Salamon")

  register_event("TextMsg","start","a","2&#Game_C")
   
  register_cvar("crazy_restart","1")
  register_cvar("crazy_restart_time","45")
  register_cvar("crazy_restart_weapon","weapon_deagle")

  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("glock","block")
  register_clcmd("usp","block")
  register_clcmd("p228","block")
  register_clcmd("deagle","block")
  register_clcmd("elites","block")
  register_clcmd("fn57","block")
  register_clcmd("m3","block")
  register_clcmd("autoshotgun","block")
  register_clcmd("mac10","block")
  register_clcmd("tmp","block")
  register_clcmd("mp5","block")
  register_clcmd("ump45","block")
  register_clcmd("p90","block")
  register_clcmd("galil","block")
  register_clcmd("ak47","block")
  register_clcmd("scout","block")
  register_clcmd("sg552","block")
  register_clcmd("awp","block")
  register_clcmd("g3sg1","block")
  register_clcmd("famas","block")
  register_clcmd("m4a1","block")
  register_clcmd("bullpup","block")
  register_clcmd("sg550","block")
  register_clcmd("m249","block")
  register_clcmd("shield","block")
  register_clcmd("primammo","block")
  register_clcmd("secammo","block")
  register_clcmd("vest","block")
  register_clcmd("vesthelm","block")
  register_clcmd("flash","block")
  register_clcmd("hegren","block")
  register_clcmd("sgren","block")
  register_clcmd("nvgs","block")

  register_clcmd("weapon_knife", "block")
  register_clcmd("weapon_sg550", "block")
  register_clcmd("weapon_mac10", "block")
  register_clcmd("weapon_aug", "block")
  register_clcmd("weapon_xm1014", "block")
  register_clcmd("weapon_p90", "block")
  register_clcmd("weapon_c4", "block")
  register_clcmd("weapon_tmp", "block")
  register_clcmd("weapon_mp5navy", "block")
  register_clcmd("weapon_ump45", "block")
  register_clcmd("weapon_m4a1", "block")
  register_clcmd("weapon_awp", "block")
  register_clcmd("weapon_g3sg1", "block")
  register_clcmd("weapon_sg552", "block")
  register_clcmd("weapon_scout", "block")
  register_clcmd("weapon_m3", "block")
  register_clcmd("weapon_m249", "block")
  register_clcmd("weapon_ak47", "block")
  register_clcmd("weapon_fiveseven", "block")
  register_clcmd("weapon_usp", "block")
  register_clcmd("weapon_glock18", "block")
  register_clcmd("weapon_deagle", "block")
  register_clcmd("weapon_p228", "block")
  register_clcmd("weapon_elite", "block")
  register_clcmd("weapon_flashbang", "block")
  register_clcmd("weapon_hegrenade", "block")
  register_clcmd("weapon_smokegrenade", "block")

  register_clcmd("lastinv", "block")
}

public start()
{
  timer = get_cvar_num("crazy_restart_time")

  new Float:res_time = get_cvar_float("crazy_restart_time")

  if(get_cvar_num("crazy_restart") == 1)
   {
    isrestart = true

//dodajemy pluginy ktore chcemy zatrzymac na czas rundy nozowej
//a robimy to w nastepujacy sposob
//server_cmd("amx_pausecfg pause nazwa_pluginu.amxx")
//server_cmd("amx_pausecfg pause nazwa_pluginu2.amxx")
//dopisujemy te pluginy ktore chcemy zatrzymac i te same spowrotem
//wlaczamy nizej

    set_task(res_time + 1, "end")
    set_task(1.0, "count_me", 123, _, _, "b")
    set_task(4.0, "ammo", 123, _, _, "b")
   }
}

public ammo(id)
{
  new weapon[192]
  get_cvar_string("crazy_restart_weapon", weapon, 191)

  for(new i = 1; i <= get_playersnum(); i++)
  {
  give_item(id, "weapon_mac10")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  give_item(id, "ammo_45acp")
  engclient_cmd(id,"weapon_mac10")

  }
}

public end()
{
 isrestart = false

 remove_task(123)

//tu spowrotem wlaczamy pluginy ktore zatrzymalismy wyzej
//server_cmd("amx_pausecfg enable nazwa_pluginu.amxx")
//server_cmd("amx_pausecfg enable nazwa_pluginu2.amxx")
//robimy tak z kazdym, a jak widac jedyne co sie zmienia to enable

 set_cvar_num("sv_restartround",1)
}

public count_me()
{
    new red = random_num(5,255)
    new green = random_num(5,255)
    new blue = random_num(5,255) 

    set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
    show_hudmessage(0,"******************************^n Restart za %i sekund ^n******************************", timer)

    if(timer == 3)
    {
    client_cmd(0, "spk vox/three.wav")
    }
    if(timer == 2)
    {
    client_cmd(0, "spk vox/two.wav")
    }
    if(timer == 1)
    {
    client_cmd(0, "spk vox/one.wav")
    }
    timer--
}

public block(id)
{
    if(isrestart)
        return PLUGIN_HANDLED
   
    return PLUGIN_CONTINUE
}

  • +
  • -
  • 0

#7 Snickers

    Życzliwy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:25
Offline

Napisano 26.03.2009 13:43

Mi po próbie kompilacji wyskoczyły takie błędy:

Error: Undefined symbol "id" on line 135
Warning: Expression has no effect on line 135
Error: Expected token: ";", but found ")" on line 135
Error: Invalid expression, assumed zero on line 135
Error: Too many error messages on one line on line 135

Wydaje mi się, że trzeba

give_item(i, "weapon_mac10")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  give_item(i, "ammo_45acp")
  engclient_cmd(i,"weapon_mac10")

Ja się nie znam, ale tylko tak się u mnie dało :)
  • +
  • -
  • 0

#8 loleN

    Profesjonalista

  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:157
  • Steam:steam
  • Lokalizacja:Częstochowa
Offline

Napisano 26.03.2009 14:51

Ja normalnie z kompilowałem...
Masz pliki...

Załączone pliki


  • +
  • -
  • 0

#9 Snickers

    Życzliwy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:25
Offline

Napisano 26.03.2009 21:38

Gdybyś był tak miły, i rzucił okiem na moje .sma. Byłbym wdzięczny :)

#include <amxmodx>
#include <fun>

new bool:isrestart = false
new timer

new const muzyczka2[] = {"sound/misc/PainGivers/rush.mp3"}

public plugin_precache()
{
 precache_generic(muzyczka2)
}

public plugin_init()
{
  register_plugin("Crazy Restart", "4.8", "Salamon")

  register_event("TextMsg","start","a","2&#Game_C")
   
  register_cvar("crazy_restart","1")
  register_cvar("crazy_restart_time","45")
  register_cvar("crazy_restart_weapon","weapon_usp")

  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("glock","block")
  register_clcmd("usp","block")
  register_clcmd("p228","block")
  register_clcmd("deagle","block")
  register_clcmd("elites","block")
  register_clcmd("fn57","block")
  register_clcmd("m3","block")
  register_clcmd("autoshotgun","block")
  register_clcmd("mac10","block")
  register_clcmd("tmp","block")
  register_clcmd("mp5","block")
  register_clcmd("ump45","block")
  register_clcmd("p90","block")
  register_clcmd("galil","block")
  register_clcmd("ak47","block")
  register_clcmd("scout","block")
  register_clcmd("sg552","block")
  register_clcmd("awp","block")
  register_clcmd("g3sg1","block")
  register_clcmd("famas","block")
  register_clcmd("m4a1","block")
  register_clcmd("bullpup","block")
  register_clcmd("sg550","block")
  register_clcmd("m249","block")
  register_clcmd("shield","block")
  register_clcmd("primammo","block")
  register_clcmd("secammo","block")
  register_clcmd("vest","block")
  register_clcmd("vesthelm","block")
  register_clcmd("flash","block")
  register_clcmd("hegren","block")
  register_clcmd("sgren","block")
  register_clcmd("nvgs","block")

  register_clcmd("weapon_knife", "block")
  register_clcmd("weapon_sg550", "block")
  register_clcmd("weapon_mac10", "block")
  register_clcmd("weapon_aug", "block")
  register_clcmd("weapon_xm1014", "block")
  register_clcmd("weapon_p90", "block")
  register_clcmd("weapon_c4", "block")
  register_clcmd("weapon_tmp", "block")
  register_clcmd("weapon_mp5navy", "block")
  register_clcmd("weapon_ump45", "block")
  register_clcmd("weapon_m4a1", "block")
  register_clcmd("weapon_awp", "block")
  register_clcmd("weapon_g3sg1", "block")
  register_clcmd("weapon_sg552", "block")
  register_clcmd("weapon_scout", "block")
  register_clcmd("weapon_m3", "block")
  register_clcmd("weapon_m249", "block")
  register_clcmd("weapon_ak47", "block")
  register_clcmd("weapon_fiveseven", "block")
  register_clcmd("weapon_usp", "block")
  register_clcmd("weapon_glock18", "block")
  register_clcmd("weapon_deagle", "block")
  register_clcmd("weapon_p228", "block")
  register_clcmd("weapon_elite", "block")
  register_clcmd("weapon_flashbang", "block")
  register_clcmd("weapon_hegrenade", "block")
  register_clcmd("weapon_smokegrenade", "block")

  register_clcmd("lastinv", "block")
}

public start()
{
  timer = get_cvar_num("crazy_restart_time")

  new Float:res_time = get_cvar_float("crazy_restart_time")

  if(get_cvar_num("crazy_restart") == 1)
   {
    isrestart = true
    
    server_cmd("amx_pausecfg enable hitbox.amxx")
    server_cmd("amx_hitbox a")
    server_cmd("amx_pausecfg pause ultimate_sounds.amxx")
    server_cmd("amx_pausecfg pause miscstats.amxx")
    server_cmd("amx_pausecfg pause sound_mp3.amxx")
    server_cmd("amx_pausecfg pasue aimbotdetect.amxx")

   
    set_task(res_time + 1, "end")
    set_task(5.0, "muzyczka")
    set_task(1.0, "count_me", 123, _, _, "b")
    set_task(2.0, "only_hs", 123, _, _, "b")
    set_task(0.1, "ammo", 123, _, _, "b")
   }
}

public muzyczka()
{
 client_cmd(0, "mp3 play %s", muzyczka2)
}

public ammo()
{
  new weapon[192]
  get_cvar_string("crazy_restart_weapon", weapon, 191)

  for(new i = 1; i <= get_playersnum(); i++)
  {
  give_item(i, weapon)
  engclient_cmd(i, weapon)
  }
}

public end()
{
 isrestart = false

 remove_task(123)
 
 server_cmd("amx_hitbox abcdefg")
 server_cmd("amx_pausecfg pause hitbox.amxx")
 server_cmd("amx_pausecfg enable ultimate_sounds.amxx")
 server_cmd("amx_pausecfg enable miscstats.amxx")
 server_cmd("amx_pausecfg enable sound_mp3.amxx")
 server_cmd("amx_pausecfg enable aimbotdetect.amxx")
 
 
 set_cvar_num("sv_restartround",1)
}
public only_hs()
{
    new green = random_num(5,255)
    new blue = random_num(5,255)
    new red = random_num(5,255)
    
    set_hudmessage(green, blue, red, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
    show_hudmessage(0,"^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n! Celuj tylko w !^nBANIE")
}

public count_me()
{
    new red = random_num(5,255)
    new green = random_num(5,255)
    new blue = random_num(5,255)  

    set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
    show_hudmessage(0,"^n^n******************************^nRunda rozgrzewkowa^n              %i              ^n******************************", timer)



    if(timer == 3)
    {
    client_cmd(0, "spk vox/three.wav")
    }
    if(timer == 2)
    {
    client_cmd(0, "spk vox/two.wav")
    }
    if(timer == 1)
    {
    client_cmd(0, "spk vox/one.wav")
    }
    timer--
}

public block(id)
{
    if(isrestart)
        return PLUGIN_HANDLED
   
    return PLUGIN_CONTINUE
}

  • +
  • -
  • 0

#10 loleN

    Profesjonalista

  • Użytkownik

Reputacja: 27
Życzliwy

  • Postów:157
  • Steam:steam
  • Lokalizacja:Częstochowa
Offline

Napisano 26.03.2009 23:18

Ja doszedłem do tego momentu.. I są 3 błędy....
#include <amxmodx>
#include <fun>

new bool:isrestart = false
new timer

new const muzyczka2[] = {"sound/misc/PainGivers/rush.mp3"}

public plugin_precache()
{
	 precache_sound(muzyczka2)
}

public plugin_init()
{
  register_plugin("Crazy Restart", "4.8", "Salamon")

  register_event("TextMsg","start","a","2&#Game_C")
   
  register_cvar("crazy_restart","1")
  register_cvar("crazy_restart_time","45")
  register_cvar("crazy_restart_weapon","weapon_usp")

  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("glock","block")
  register_clcmd("usp","block")
  register_clcmd("p228","block")
  register_clcmd("deagle","block")
  register_clcmd("elites","block")
  register_clcmd("fn57","block")
  register_clcmd("m3","block")
  register_clcmd("autoshotgun","block")
  register_clcmd("mac10","block")
  register_clcmd("tmp","block")
  register_clcmd("mp5","block")
  register_clcmd("ump45","block")
  register_clcmd("p90","block")
  register_clcmd("galil","block")
  register_clcmd("ak47","block")
  register_clcmd("scout","block")
  register_clcmd("sg552","block")
  register_clcmd("awp","block")
  register_clcmd("g3sg1","block")
  register_clcmd("famas","block")
  register_clcmd("m4a1","block")
  register_clcmd("bullpup","block")
  register_clcmd("sg550","block")
  register_clcmd("m249","block")
  register_clcmd("shield","block")
  register_clcmd("primammo","block")
  register_clcmd("secammo","block")
  register_clcmd("vest","block")
  register_clcmd("vesthelm","block")
  register_clcmd("flash","block")
  register_clcmd("hegren","block")
  register_clcmd("sgren","block")
  register_clcmd("nvgs","block")

  register_clcmd("weapon_knife", "block")
  register_clcmd("weapon_sg550", "block")
  register_clcmd("weapon_mac10", "block")
  register_clcmd("weapon_aug", "block")
  register_clcmd("weapon_xm1014", "block")
  register_clcmd("weapon_p90", "block")
  register_clcmd("weapon_c4", "block")
  register_clcmd("weapon_tmp", "block")
  register_clcmd("weapon_mp5navy", "block")
  register_clcmd("weapon_ump45", "block")
  register_clcmd("weapon_m4a1", "block")
  register_clcmd("weapon_awp", "block")
  register_clcmd("weapon_g3sg1", "block")
  register_clcmd("weapon_sg552", "block")
  register_clcmd("weapon_scout", "block")
  register_clcmd("weapon_m3", "block")
  register_clcmd("weapon_m249", "block")
  register_clcmd("weapon_ak47", "block")
  register_clcmd("weapon_fiveseven", "block")
  register_clcmd("weapon_usp", "block")
  register_clcmd("weapon_glock18", "block")
  register_clcmd("weapon_deagle", "block")
  register_clcmd("weapon_p228", "block")
  register_clcmd("weapon_elite", "block")
  register_clcmd("weapon_flashbang", "block")
  register_clcmd("weapon_hegrenade", "block")
  register_clcmd("weapon_smokegrenade", "block")

  register_clcmd("lastinv", "block")
}

public start()
{
  timer = get_cvar_num("crazy_restart_time")

  new Float:res_time = get_cvar_float("crazy_restart_time")

  if(get_cvar_num("crazy_restart") == 1)
   {
    isrestart = true
   
	unpause("ac","hitbox.amxx")
	pause("ac","ultimate_sounds.amxx")
	pause("ac","miscstats.amxx")
	pause("ac","sound_mp3.amxx")
	pause("ac","aimbotdetect.amxx")

   
    set_task(res_time + 1, "end") 
    set_task(5.0, "muzyczka")
    set_task(1.0, "count_me", 123, _, _, "b")
    set_task(2.0, "only_hs", 123, _, _, "b")
    set_task(0.1, "ammo", 123, _, _, "b")
   }
}

public muzyczka()
{
 client_cmd(0, "mp3 play %s", muzyczka2)
}

public ammo()
{
  new weapon[192]
  get_cvar_string("crazy_restart_weapon", weapon, 191)

  for(new i = 1; i <= get_playersnum(); i++)
  {
  give_item(i, weapon)
  engclient_cmd(i, weapon)
  }
}

public end()
{
 isrestart = false

 remove_task(123)
 
	pause("ac","hitbox.amxx")
	unpause("ac","ultimate_sounds.amxx")
	unpause("ac","miscstats.amxx")
	unpause("ac","sound_mp3.amxx")
	unpause("ac","aimbotdetect.amxx")
	server_cmd("sv_restartround 1") 
}
public only_hs()
{
    set_hudmessage(255, 255, 255, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
    show_hudmessage(0,"^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n^n! Celuj tylko w !^nBANIE")
}

public count_me()
{
    new red = random_num(5,255)
    new green = random_num(5,255)
    new blue = random_num(5,255) 

    set_hudmessage(red, green, blue, -1.0, 0.01, 0, 0.1, 0.92, 0.1, 0.1, -1)
    show_hudmessage(0,"^n^n******************************^nRunda rozgrzewkowa^n              %i              ^n******************************", timer)



    if(timer == 3)
    {
    client_cmd(0, "spk vox/three.wav")
    }
    if(timer == 2)
    {
    client_cmd(0, "spk vox/two.wav")
    }
    if(timer == 1)
    {
    client_cmd(0, "spk vox/one.wav")
    }
    timer--
}

public block(id)
{
    if(isrestart)
        return PLUGIN_HANDLED
   
    return PLUGIN_CONTINUE
}

  • +
  • -
  • 0

#11 Snickers

    Życzliwy

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:25
Offline

Napisano 01.04.2009 01:32

To samo. Teraz częściej dostaje broń, ale czasami tak jakby nie działało give_item. Z tym że niektórzy mają kosę :/
  • +
  • -
  • 0




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

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