well.. i want make a plugin wath set ammopacks x 2 on specific time..example 2 am - 5 am other example..
PHP Code:
new const horas[] = { 13,14,15,16,17,18,19,20,21,22,23,24,1,2,3,4,5,6,7,8,9,10,11,12 }
PHP Code:
// Happy Hour
public happyhour(id)
{
new data[3]
get_time("%H", data, 02)
new Tiempo = str_to_num(data)
for(new i=2;i <= sizeof horas - 5;i++)
{
if(Tiempo != horas[i]) continue
g_happytime = true
}
if(g_happytime)
{
set_task(0.1,"anuncio")
}
}
public anuncio(id)
{
zp_colored_print(0, "^x04[ASD]^x03 Happy Hour:^x01 at^x03 [02:00 AM - 05:00 AM]^x01, win ammopacks x 2 !")
}
but this only set ammopacks x2 all time.. sorry for my bad english :S and thks for all