PDA

View Full Version : NELAN 2004 LAN Tournament, needs your scripting help!!


Fullwave
04-20-2004, 19:36
We are running a huge CS Tournament this weekend. Is there any AMX Plugin that will allow the players to all type "ready", and when all 10 players are ready, the server will go live on three?

We don't want any other side features, we just need these features I have stated above. Is it hard to program?

Perhaps, I can pay someone here to program it quickly, before Saturday??

AssKicR
04-20-2004, 19:48
i can do it in about 5 min, but i got some stuff i gotta do first

Fullwave
04-20-2004, 19:50
You are phenomenal man, If you can get this done. Your kindness and help will not be forgotten, and you will be mentioned at the LAN.

AssKicR
04-20-2004, 19:52
do ya feel like sending me a message on AIM .or MSN or something....

If ya do it within the next hour i will make it for ya real quick

ReddBuLL
04-20-2004, 21:40
AssKicR: You got there before I did :oops:

AssKicR
04-20-2004, 21:41
I'm fast :D

Peli
04-20-2004, 21:57
He kicked a lot of ass to get there that fast :)

{NM}Jason
04-20-2004, 23:45
AssKicR if it works PM me and I might have ya do somthing for this 100 Player LAN ... My Boss liked the Idea were going to throw one here :-) but its Going to be a TFC / CS LAN .

BigBaller
04-21-2004, 00:07
He could problay release the plugin, it would benfit many people.

Fullwave
04-21-2004, 01:12
Everybody, it works. Asskicr got paid for his work.. Bling Bling. The plugin owns. We will be rocking it at the NELAN 2004!

QwertyAccess
04-21-2004, 01:54
how much did you give him?

BigBaller
04-21-2004, 02:58
AsskicR release it please ;) >? :)

AssKicR
04-21-2004, 08:55
I will release it if Fullwave want me to... :)

Fullwave
04-21-2004, 11:15
Feel free to release it! I appreciate all of your help.

IceMouse[WrG]
04-21-2004, 16:22
Paid?! It's a fairly simple plugin! I've probably made it for people and forgot!

ThorW634
04-21-2004, 19:38
release?

AssKicR
04-21-2004, 20:45
]Paid?! It's a fairly simple plugin! I've probably made it for people and forgot!

well i asked him first as a joke if i could get a $ because i'm broke
he then asked how much i whould want for the plugin and i replied that he could give me whatever he felt was reasonable, and yes IceMouse it was a simple plugin...

Fullwave
04-21-2004, 21:03
He was paid in full a reasonable amount of money for the plugin.

BigBaller
04-22-2004, 00:25
I will release it if Fullwave want me to... :)

And he does

Feel free to release it! I appreciate all of your help.

It sounds interesting as it is, I might want to check it out :D

AssKicR
04-22-2004, 09:34
#include <amxmodx>

new bool:gReady[33] = false
new bool:gReStart = false
new gReadyNum

public plugin_init()
{
register_plugin("Ready?","5.0","AssKicR")
register_clcmd("say","HandleSay")
register_cvar("sv_minplayers","9")
}

public HandleSay(id)
{
new gText[192]
read_args(gText, 192)
remove_quotes(gText)

if(containi(gText,"ready")!=-1) {
if(!gReady[id]) {
if(get_playersnum()>=get_cvar_num("sv_minplayers")) {
gReady[id] = true
gReadyNum += 1
client_print(0,print_chat,"[AMXX] %i/%i are Ready...",gReadyNum,get_playersnum())
}else{
client_print(id,print_chat,"[AMXX] Need more players to go live.")
}
}else{
client_print(id,print_chat,"[AMXX] You are already Ready.")
}
}

if (gReadyNum==get_playersnum() && !gReStart) {
gReStart = true
client_print(0,print_chat,"[AMXX] GOING LIVE ON THREE RESTARTS")
//client_cmd(0,"spk ambience/siren.wav") //UNCOMMENT THIS LINE FOR A NICE SOUND EFFECT
set_task( 5.0, "RestartRound1" ) //first restart
set_task( 9.0, "RestartRound2" ) //second restart
set_task( 11.0,"RestartRound3" ) //final restart
set_task( 17.0,"goLIVE") //go live
}
}

public RestartRound1() {
server_cmd( "sv_restartround 1")
}

public RestartRound2() {
server_cmd( "sv_restartround 1")
}

public RestartRound3() {
server_cmd( "sv_restartround 5")
}

public goLIVE() {
client_print(0,print_chat,"[AMXX] MATCH IS NOW LIVE!")
client_print(0,print_center,"MATCH IS NOW LIVE!")
gReadyNum=0
gReStart = false
for( new id=0 ; id>33 ; id++ )
gReady[id]=false
}

hellraser
09-10-2004, 17:44
Very good code, how could i kinda make a command to restart the match and would 'unready' everyone so everybody would have to type "ready" once again?

twistedeuphoria
09-10-2004, 19:48
It looks like it already does that.

hellraser
09-11-2004, 03:24
No cause,if u like type a retry in the moddle of the match the server will always consider you as " ready", it doesn't clear up the buffer...

hellraser
09-12-2004, 13:43
nobody knows how to make a 'unready' cmd? Its just to do a counter -1 but i dunno how.....:'(

Da Bishop
09-12-2004, 15:17
#include <amxmodx>

new bool:gReady[33] = false
new bool:gReStart = false
new gReadyNum

public plugin_init()
{
register_plugin("Ready?","5.0","AssKicR")
register_clcmd("say","HandleSay")
register_cvar("sv_minplayers","9")
}

public HandleSay(id)
{
new gText[192]
read_args(gText, 192)
remove_quotes(gText)

if(containi(gText,"ready")!=-1) {
if(!gReady[id]) {
if(get_playersnum()>=get_cvar_num("sv_minplayers")) {
gReady[id] = true
gReadyNum += 1
client_print(0,print_chat,"[AMXX] %i/%i are Ready...",gReadyNum,get_playersnum())
}else{
client_print(id,print_chat,"[AMXX] Need more players to go live.")
}
}else{
client_print(id,print_chat,"[AMXX] You are already Ready.")
}
}

if(containi(gText,"clearlive") !=-1) {
if(get_user_flags(id) & ADMIN_KICK) {
gReady[0] = false
gReadyNum = 0
client_print(0,print_chat,"[AMXX] Match is not live, Players are not Ready.")
}else{
client_print(id,print_chat,"[AMXX] You are not an admin.")
}
}


if (gReadyNum==get_playersnum() && !gReStart) {
gReStart = true
client_print(0,print_chat,"[AMXX] GOING LIVE ON THREE RESTARTS")
//client_cmd(0,"spk ambience/siren.wav") //UNCOMMENT THIS LINE FOR A NICE SOUND EFFECT
set_task( 5.0, "RestartRound1" ) //first restart
set_task( 9.0, "RestartRound2" ) //second restart
set_task( 11.0,"RestartRound3" ) //final restart
set_task( 17.0,"goLIVE") //go live
}

}

public RestartRound1() {
server_cmd( "sv_restartround 1")
}

public RestartRound2() {
server_cmd( "sv_restartround 1")
}

public RestartRound3() {
server_cmd( "sv_restartround 5")
}

public goLIVE() {
client_print(0,print_chat,"[AMXX] MATCH IS NOW LIVE!")
client_print(0,print_center,"MATCH IS NOW LIVE!")
gReStart = false
for( new id=0 ; id>33 ; id++ )
gReady[id]=false
}

try this think that should work... just wrote a quick little segmet

SAY: clearlive to erase the ready... can't use notready since it looks for teh work ready :wink:

hellraser
09-12-2004, 16:07
Thx for your time dude, what i want is when a normal player has typed 'ready' he could type like 'stop' and the ready players counter would go -1! ??

Da Bishop
09-12-2004, 16:26
so if he were to say stop... just he isn't ready no more and count is -1 got it

#include <amxmodx>

new bool:gReady[33] = false
new bool:gReStart = false
new gReadyNum

public plugin_init()
{
register_plugin("Ready?","5.0","AssKicR")
register_clcmd("say","HandleSay")
register_cvar("sv_minplayers","9")
}

public HandleSay(id)
{
new gText[192]
read_args(gText, 192)
remove_quotes(gText)

if(containi(gText,"ready")!=-1) {
if(!gReady[id]) {
if(get_playersnum()>=get_cvar_num("sv_minplayers")) {
gReady[id] = true
gReadyNum += 1
client_print(0,print_chat,"[AMXX] %i/%i are Ready...",gReadyNum,get_playersnum())
}else{
client_print(id,print_chat,"[AMXX] Need more players to go live.")
}
}else{
client_print(id,print_chat,"[AMXX] You are already Ready.")
}
}

if(containi(gText,"stop") !=-1) {
if(gReady[id]) {
gReady[id] = false
gReadyNum -= 1
client_print(id,print_chat,"[AMXX] You are now not ready.")
client_print(0,print_chat,"[AMXX] %i/%i are Ready now...",gReadyNum,get_playersnum())
}else{
client_print(id,print_chat,"[AMXX] You have not said Ready yet...")
}
}

if (gReadyNum==get_playersnum() && !gReStart) {
gReStart = true
client_print(0,print_chat,"[AMXX] GOING LIVE ON THREE RESTARTS")
//client_cmd(0,"spk ambience/siren.wav") //UNCOMMENT THIS LINE FOR A NICE SOUND EFFECT
set_task( 5.0, "RestartRound1" ) //first restart
set_task( 9.0, "RestartRound2" ) //second restart
set_task( 11.0,"RestartRound3" ) //final restart
set_task( 17.0,"goLIVE") //go live
}

}

public RestartRound1() {
server_cmd( "sv_restartround 1")
}

public RestartRound2() {
server_cmd( "sv_restartround 1")
}

public RestartRound3() {
server_cmd( "sv_restartround 5")
}

public goLIVE() {
client_print(0,print_chat,"[AMXX] MATCH IS NOW LIVE!")
client_print(0,print_center,"MATCH IS NOW LIVE!")
gReStart = false
for( new id=0 ; id>33 ; id++ )
gReady[id]=false
}

hellraser
09-12-2004, 17:25
Perfect m8,u're da man :d Thx

hellraser
09-13-2004, 15:49
There's like a bug or not really cause nothing is coded to stop it.
But if like sv_minplayers = 1 then if a player types stop it will do : gReadyNum -1...And there is no limit for gReadyNum so it can be < 0...
How could i do so
gReadyNum always >= 0 ??

Thx

[SNPR]Sega
09-16-2004, 03:09
Cool plugin. I'm a fan. Thanks guys.

twistedeuphoria
09-16-2004, 11:28
if(containi(gText,"stop") !=-1) {
if(gReady[id]) {
gReady[id] = false
gReadyNum -= 1
if(gReadyNum <= 0)
gReadyNum = 0 That should work.

meticulousservers
09-16-2004, 18:13
NELAN 2004?

That the one in Toledo?

If so, god help the people that pay to play at it. Last time the power was so pathetic, 1/2 the LAN left before they could finally get power stabilized, and they only got it stabilized because of that if you ask me.

Hope you guys found a suitable establishment this time, it was a waste of $15 last time.