This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Auto Restart Round!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
.Budincito' ~
New Member
Join Date: Jun 2008
Old 07-01-2008 , 15:21   Auto Restart Round!!!
Reply With Quote #1

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "RR"
#define VERSION "1.5"
#define AUTHOR "AMXX"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_autorr", "pprr", ADMIN_CVAR)
register_concmd("amx_boliche","disco",ADMIN_L EVEL_A," Modo disco")
return PLUGIN_CONTINUE;

}
public pprr()
{

set_task(10.0, "fxsayy1")
set_task(20.0, "fxsayy2")
set_task(30.0, "fxsayy3")
set_task(40.0, "fxsayy4")
set_task(48.0, "fxsayy5")
set_task(50.0, "RR1")
set_task(52.0, "RR2")
set_task(54.0, "RR3")
set_task(58.0, "fxsayy6")
}
public fxsayy1()
{
server_cmd("amx_boliche 1,1")
client_cmd(0,"spk ambience/lv5")
set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
show_hudmessage(0, "[AMXX] The game is Restart In 40 Seconds")
}
public fxsayy2()
{
set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
show_hudmessage(0, "[AMXX] The game is Restart In 30 Seconds")
}
public fxsayy3()
{
set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
show_hudmessage(0, "[AMXX] The game is Restart In 20 Seconds")
}
public fxsayy4()
{
set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
show_hudmessage(0, "[AMXX] The game is Restart In 10 Seconds")
}
public fxsayy5()
{
set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
show_hudmessage(0, "[AMXX] Vale Third Restart At!!!")
}
public RR1()
{
set_task (1.0, "autorr")
}
public RR2()
{
set_task (1.0, "autorr")
}
public RR3()
{
set_task (1.0, "autorr")
}
public fxsayy6()
{
set_hudmessage(111, 111, 111, -1.0, 0.5, 1, 6.0, 10.0)
show_hudmessage(0, "[AMXX] -*- Vale -*- Vale -*- Vale -*- Vale -*-")// ROJO
server_cmd("amx_boliche 0")
client_cmd(0,"stopsound")
}
public autorr()
{
server_cmd("sv_restart 1")
}

public check()
{
new players[32], num
get_players(players,num,"ah")
for(new i=0;i<num;i++)
{
new num1 = random_num(0,255)
new num2 = random_num(0,255)
new num3 = random_num(0,255)
new alpha = random_num(70,200)
message_begin(MSG_ONE,get_user_msgid("ScreenF ade"),{0,0,0},players[i])
write_short(~0)
write_short(~0)
write_short(1<<12)
write_byte(num1)
write_byte(num2)
write_byte(num3)
write_byte(alpha)
message_end()
set_user_rendering(players[i],kRenderFxGlowShell,num1,num2,num3,kRenderTra nsAlpha,255)
}
}

public disco(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
{
return PLUGIN_HANDLED
}

new arg1[32]
read_argv(1,arg1,31)

if(equali(arg1,"1") || equali(arg1,"on"))
{
set_task(0.5,"check",1337,"",0,"b")
}
else
{
remove_task(1337)

set_task(0.2,"unglow")
}
return PLUGIN_HANDLED
}

public unglow()
{
new players[32], num
get_players(players,num,"h")
for(new i=0;i<num;i++)
{
message_begin(MSG_ONE,get_user_msgid("ScreenF ade"),{0,0,0},players[i])
write_short(~0)
write_short(~0)
write_short(1<<12)
write_byte(0)
write_byte(0)
write_byte(0)
write_byte(0)
message_end()

set_user_rendering(players[i])
}
}
-----------------------------------------------------------------------

Well, I leave the plug Aca Auto RR.

I hope they serve.

This plug, is that when the map begins, the game was restarted in 40 seconds).

I am Argentinian, and I find it difficult to write English, know how to understand
.Budincito' ~ is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-01-2008 , 15:44   Re: Auto Restart Round!!!
Reply With Quote #2

Please remove the code from the post and put it into an SMA file and upload that file here. Then, provide a better description. Also, plugin must be in English, if you want it in another language as well, either use ML or upload another version in the other language.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-01-2008 , 15:54   Re: Auto Restart Round!!!
Reply With Quote #3

Quote:
#define AUTHOR "AMXX"
I guess you didnt make this?
__________________
minimiller is offline
Send a message via MSN to minimiller
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-01-2008 , 16:29   Re: Auto Restart Round!!!
Reply With Quote #4

he probally did make it , you need an admin level but he does not check cmd access
__________________
I am out of order!
grimvh2 is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-01-2008 , 18:54   Re: Auto Restart Round!!!
Reply With Quote #5

I see this in other plugin.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
.Budincito' ~
New Member
Join Date: Jun 2008
Old 07-01-2008 , 20:49   Re: Auto Restart Round!!!
Reply With Quote #6

Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "RR"
#define VERSION "1.5"
#define AUTHOR "BDN"

public plugin_init() {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 register_concmd("amx_autorr", "pprr", ADMIN_CVAR)
 register_concmd("amx_boliche","disco",ADMIN_LEVEL_A," Modo disco")
 return PLUGIN_CONTINUE;
 
}
public pprr()
{
 set_task(10.0, "fxsayy1")
 set_task(20.0, "fxsayy2")
 set_task(30.0, "fxsayy3")
 set_task(40.0, "fxsayy4")
 set_task(48.0, "fxsayy5")
 set_task(50.0, "RR1")
 set_task(52.0, "RR2")
 set_task(54.0, "RR3")
 set_task(58.0, "fxsayy6")
}
public fxsayy1()
{
 server_cmd("amx_boliche 1,1")
 client_cmd(0,"spk ambience/lv5")
 set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
 show_hudmessage(0, "[BDN] La Partida Se Reinicia En 40 Segundos") //AMARILLO
}
public fxsayy2()
{
 set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
 show_hudmessage(0, "[BDN] La Partida Se Reinicia En 30 Segundos") //AMARILLO
}
public fxsayy3()
{
 set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
 show_hudmessage(0, "[BDN] La Partida Se Reinicia En 20 Segundos") //AMARILLO
}
public fxsayy4()
{
 set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
 show_hudmessage(0, "[BDN] La Partida Se Reinicia En 10 Segundos") //ROJO
}
public fxsayy5()
{
 set_hudmessage(111, 111, 111, -1.0, 0.6, 1, 6.0, 6.0)
 show_hudmessage(0, "[BDN] Al Tercer Restart Vale!!!") //ROJO
}
public RR1()
{
 set_task (1.0, "autorr")
} 
public RR2()
{
 set_task (1.0, "autorr")
}
public RR3()
{
 set_task (1.0, "autorr")
} 
public fxsayy6()
{
 set_hudmessage(111, 111, 111, -1.0, 0.5, 1, 6.0, 10.0)
 show_hudmessage(0, "[BDN] -*- Vale -*- Vale -*- Vale -*- Vale -*-")// ROJO
 server_cmd("amx_boliche 0")
 client_cmd(0,"stopsound")
}
public autorr()
{
 server_cmd("sv_restart 1")
}
public check()
{
 new players[32], num
 get_players(players,num,"ah")
 for(new i=0;i<num;i++)
 {
  new num1 = random_num(0,255)
  new num2 = random_num(0,255)
  new num3 = random_num(0,255)
  new alpha = random_num(70,200)
  message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},players[i])
  write_short(~0)
  write_short(~0)
  write_short(1<<12)
  write_byte(num1)
  write_byte(num2)
  write_byte(num3)
  write_byte(alpha)
  message_end()
  set_user_rendering(players[i],kRenderFxGlowShell,num1,num2,num3,kRenderTransAlpha,255)
 }
}
public disco(id,level,cid)
{
 if(!cmd_access(id,level,cid,2))
 {
  return PLUGIN_HANDLED
 }
 new arg1[32]
 read_argv(1,arg1,31)
 if(equali(arg1,"1") || equali(arg1,"on"))
 {
  set_task(0.5,"check",1337,"",0,"b")
 }
 else
 {
  remove_task(1337)
  set_task(0.2,"unglow")
 }
 return PLUGIN_HANDLED
}
public unglow()
{
 new players[32], num
 get_players(players,num,"h")
 for(new i=0;i<num;i++)
 {
  message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},players[i])
  write_short(~0)
  write_short(~0)
  write_short(1<<12)
  write_byte(0)
  write_byte(0)
  write_byte(0)
  write_byte(0)
  message_end()
  set_user_rendering(players[i])
 }
}


So you told me?.
They are my first steps in creating plugins, know understand. ...

Atte. .Budincito' ~
.Budincito' ~ is offline
Plain
Member
Join Date: Oct 2007
Location: CA
Old 07-01-2008 , 21:15   Re: Auto Restart Round!!!
Reply With Quote #7

You need to upload the .sma in your main post.
Plain is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-02-2008 , 01:06   Re: Auto Restart Round!!!
Reply With Quote #8

This One covers quite a bit more aspects.
__________________
bmann_420 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-02-2008 , 01:19   Re: Auto Restart Round!!!
Reply With Quote #9

@budincito

espaņol: tenes que subir el .sma al foro y automaticamente aparece la compilacion del .amxx....

english: u have to upload .sma and the forum automatic compile the plugin to a .amxx
Alucard^ is offline
Send a message via Skype™ to Alucard^
DeuX
Member
Join Date: Apr 2008
Old 07-02-2008 , 11:40   Re: Auto Restart Round!!!
Reply With Quote #10

Idiot! :O
DeuX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode