Freeze time
Freeze time
Sveiki, noriu padaryti taip kad pvz po 40 sekundžių visi T gautu freeze ir jiems neitų naudoti jokių šviesų (F)
Gal galite duoti tokį koduką?
Gal galite duoti tokį koduką?

Re: Freeze time
Code: Select all
set_task(40.0, "OnTerroristFreeze");
Code: Select all
public OnTerroristFreeze(){ new players[32], playerCount; get_players(players, playerCount, "aceh", "TERRORIST"); if (!playerCount) return; for (new i; i < playerCount; i++) set_entity_flags(players[i], FL_FROZEN, true);}
Re: Freeze time
Gal gali paaiškinti kur šitą kodą dėti?
set_task(40.0, "OnTerroristFreeze");
Nes nelabai suprantu.
set_task(40.0, "OnTerroristFreeze");
Nes nelabai suprantu.

- Giltinas
- Jau po truputį tampa savu
- Posts: 149
- Joined: 2012 Jan 03 21:38
- Skype: edgaras9512
- Location: Šilutė
Re: Freeze time
Code: Select all
#include <amxmodx>#include <engine> public plugin_init() { set_task(40.0, "OnTerroristFreeze");} public OnTerroristFreeze(){ new players[32], playerCount; get_players(players, playerCount, "aceh", "TERRORIST"); if (!playerCount) return; for (new i; i < playerCount; i++) set_entity_flags(players[i], FL_FROZEN, true);}

Re: Freeze time
Giltinas wrote:Code: Select all
#include <amxmodx>#include <engine> public plugin_init() { set_task(40.0, "OnTerroristFreeze");} public OnTerroristFreeze(){ new players[32], playerCount; get_players(players, playerCount, "aceh", "TERRORIST"); if (!playerCount) return; for (new i; i < playerCount; i++) set_entity_flags(players[i], FL_FROZEN, true);}

-- 2013 Vas 05 20:28 --
iskviecia tam tikra funkcija nurodytu laiku, siuo atveju po 40 sekundziu OnTerroristFreeze funkcija bus iskviesta..faqub wrote:Gal gali paaiškinti kur šitą kodą dėti?
set_task(40.0, "OnTerroristFreeze");
Nes nelabai suprantu.
http://www.amxmodx.org/funcwiki.php?sea ... &go=search
Re: Freeze time
set_entity_flags(players, FL_FROZEN, true);
Čia rodo errorą, tipo neranda tokio set_entity_flags
Čia rodo errorą, tipo neranda tokio set_entity_flags

Re: Freeze time
Code: Select all
#include <engine>
Re: Freeze time
Įrašau šitą ir vistiek errorų yra tik nežinau kokie nes greitai išsijunge tas amxxpc.

- aaarnas
- Vyr. diskusijų administratorius
- Posts: 3891
- Joined: 2010 Aug 31 13:21
- Skype: fiarno
- Contact:
Re: Freeze time
Viduje esantį failiuką (amxxpc_bat.bat) įsimesk ten kur amxxpc.exe yra ir daryk viską taip pat, tik failą kelk ant amxxpc_bat.bat failo ir matysi viską.
- Attachments
-
- amxxpc_bat.zip
- (146 Bytes) Downloaded 322 times
Palikau CS pasaulį ;/ . Nebepasiekiamas.
Re: Freeze time
Errorų dabar negaunu, tik freeze gauna T pirma round'a, o man reikia kad kiekvieną rounda gautų.

Who is online
Users browsing this forum: No registered users and 2 guests