if (roundtime > 105)
{
register_clcmd("use", "BlokujKomende");
client_print(id, print_chat, "[COD] Rakiety, miny, dynamit jest zablokowany na 15 sekund.);
}
Edited by Equilibrium, 22.01.2012 13:54.
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.
|
Posted 21.01.2012 18:45
if (roundtime > 105)
{
register_clcmd("use", "BlokujKomende");
client_print(id, print_chat, "[COD] Rakiety, miny, dynamit jest zablokowany na 15 sekund.);
}
Edited by Equilibrium, 22.01.2012 13:54.
Posted 21.01.2012 19:47
Posted 22.01.2012 19:55
public plugin_init()
{
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
//...
}
public Poczatek_Rundy()
{
set_task(15.0, "rakieta", id)
}
public rakieta(id)
{
client_cmd(id, "unbind e")
}
Posted 22.01.2012 21:45
public rakietaoff(id)
{
client_cmd(id, "unbind e")
}
public rakietaon(id)
{
client_cmd(id, "bind e +use")
}
{
set_task(15.0, "rakietaon", id)
}
{
set_task(0.1, "rakietaoff", id)
}
{
set_task(15.0, "rakietaon", id)
set_task(0.1, "rakietaoff", id)
}
Edited by Equilibrium, 22.01.2012 21:46.
Posted 22.01.2012 22:11
public plugin_init()
{
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
}
public Poczatek_Rundy()
{
client_cmd(id, "bind e +use")
set_task(15.0, "rakieta", id)
}
public rakieta(id)
{
client_cmd(id, "unbind e")
}
Edited by Nakupenda., 22.01.2012 22:11.
Posted 22.01.2012 22:50
Posted 22.01.2012 23:00
If you can dream it, you can do it.
Posted 23.01.2012 00:05
public plugin_init()
{
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
}
public Poczatek_Rundy()
{
for (new id=0; id<32; id++)
{
client_cmd(id, "unbind e")
set_task(15.0, "rakieta", id)
}
}
public rakieta(id)
{
client_cmd(id, "bind e +use")
}
Posted 23.01.2012 00:09
Posted 23.01.2012 18:22
Posted 23.01.2012 18:29
public plugin_init()
{
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
}
public Poczatek_Rundy()
{
for (new id=1; id<33; id++)
{
if(is_user_alive(id))
{
client_cmd(id, "unbind e")
set_task(15.0, "rakieta", id)
}
}
}
public rakieta(id)
{
client_cmd(id, "bind e +use")
}
Edited by Nakupenda., 23.01.2012 18:30.
Posted 23.01.2012 18:36
w tym evencie petle i tak musisz mieć
public plugin_init() { register_logevent("Poczatek_Rundy", 2, "1=Round_Start") //... } public Poczatek_Rundy() { client_cmd(0,"unbind e"); set_task(15.0, "rakieta") } public rakieta(id) { client_cmd(0, "bind e +use") }
Edited by G[o]Q, 23.01.2012 18:48.
Posted 23.01.2012 18:44
new 2.sma(13) : error 017: undefined symbol "id"
public plugin_init()
{
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
//...
}
public Poczatek_Rundy()
{
client_cmd(0,"unbind e");
set_task(15.0, "rakieta")
}
public rakieta()
{
client_cmd(0, "bind e +use")
}
Edited by Nakupenda., 23.01.2012 18:46.
Posted 23.01.2012 18:53
static Float:Last[33];
new Float:Now = get_gametime();
if((Now - Float:Last[id]) >= 105.0)
{
register_clcmd("use", "BlokujKomende");
client_print(id, print_chat, "[COD] Rakiety, miny, dynamit jest zablokowany na 15 sekund.);
}
Posted 24.01.2012 22:37
Posted 24.01.2012 22:42
0 members, 1 guests, 0 anonymous users