Hello every one, i wanted to ask, how to make firstround like freeday/ but others round is my code!
Here is my code,
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <colorchat>
// Define the Plugin Version
new const VERSION[] = "1.5";
// PREFIX
new const PREFIX[] = "[IDenty]";
const CountSeconds = 60;
const CountSeconds2 = 20;
const CountSeconds3 = 15;
new g_iCountTime;
public plugin_init()
{
register_plugin("Identy Days", VERSION, "1PWA");
register_logevent("LEV_RoundEnd", 2, "1=Round_End")
register_logevent("RoundStart", 2, "1=Round_Start")
}
public RoundStart(id)
{
ColorChat( 0, GREEN, "^x03%s ^x04 Uzgaidiet mazliet, Dienu tulit izvelesies! ", PREFIX)
set_task(10.0, "nextday")
}
public LEV_RoundEnd()
{
remove_task()
}
public Count()
{
set_hudmessage( 0 , 255 , 0 , -1.0 , 0.28 , 2 , 1.1 , 1.1 , 0.01 , 0.01 );
show_hudmessage( 0 , "Ieslodzitajiem ir: %d sekundes - palikusas" , g_iCountTime-- );
}
public nextday(id)
{
switch(random_num(1, 13))
{
case 1:
{
ZombieDay(id)
}
case 2:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Custom day! Klausies ko saka! ", PREFIX)
}
case 3:
{
SpartanDay(id)
}
case 4:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Brivdiena!", PREFIX)
}
case 5:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Bura diena! VISI UZ BURI! ", PREFIX)
}
case 6:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Mix day! Klausies ko saka! ", PREFIX)
}
case 7:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Simon day! Klausies ko saka! ", PREFIX)
}
case 8:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Custom day! Klausies ko saka! ", PREFIX)
}
case 9:
{
SuddenDay(id)
}
case 10:
{
CthnsDay(id)
}
case 11:
{
WarDay(id)
}
case 12:
{
ColorChat( 0, GREEN, "^x03%s ^x04 Stop n Go day! Klausies ko saka! ", PREFIX)
}
case 13:
{
HideDay(id)
}
}
return PLUGIN_HANDLED;
}
And lower here is day script, with all options, what i dont want to show.
I just want to know, how to do that. Example
All peoples join server, and the first round always be Freeday, but second will the script choise, like Hide day or smtg like that! ;)