/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Q47"
new oylaa [ 33 ]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Event_RoundStart", 2, "1=Round_Start")
}
public Event_RoundStart(id)
{
for(new i; i < get_maxplayers(); i++){
oylaa[id] += 1
}
}
public oyla(id)
{
if(oylaa[id] == 21)
{
rastgele(id)
}
else
{
}
}
public rastgele(id)
{
switch(random_num(0,6))
{
case 0 :
{
server_cmd("amx_vote map maplari yaz")
}
case 1:
{
server_cmd("amx_vote map maplari yaz")
}
case 2 :
{
server_cmd("amx_vote map maplari yaz")
}
case 3 :
{
server_cmd("amx_vote map maplari yaz")
}
case 4 :
{
server_cmd("amx_vote map maplari yaz")
}
case 5 :
{
server_cmd("amx_vote map maplari yaz")
}
case 6 :
{
server_cmd("amx_vote map maplari yaz")
}
}
}