Raised This Month: $51 Target: $400
 12% 

Gather Plugin V1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Xmoo
Junior Member
Join Date: May 2010
Old 06-19-2010 , 06:21   Gather Plugin V1.0
Reply With Quote #1

I have created this plugin because the most people want this public.
I was coding this plugin for myself, and my plugin have more features and will NOT be public. This plugin is a short-version of my plugin.
It's coding by myself with some friends. We are learning amxmodx scripting with MySQL connections.

Description:


This plugin manage a "War" or "Gather". It's start the game with ".ready" and stop with ".stop", also the ".add" command works before it's starting the game. And with the ".score" you can see the currently scores.


Features:


This plugin have alot of features. And i don't stop with coding this plugin with my friends, so there will come new versions out of this "Gather" plugin.

Commands:

.start

Starts the gather, but the .ready command is the most used command.

.add

This adds you ingame to the gather. After re-connect or disconnecting of the game, you will be removed. If your typ ".add" and you try again ".add" the plugin sayd your already added to the game.

.ready

This is an ADMIN command. This will start the gather. If your gather starts with 3 or with 5 persons, it will always start if the admin typ the command.
If you want to play a "war" or "Gather" with 4 persons, and the persons typ .add, the gather plugin says "4/10", you can typ .ready and the Gather starts always!

.score

The .score is like every gather the currently score of the Gather. (NOT from the game, but the GATHER!)

.stop

The .stop command stops the Gather.

.ffon

.ffon is an setting, the FriendslyFire will set to "on"

.ffoff

.ffoff is an setting, the FriendslyFire will set to "off"

Notes:

Put the "rw.amxx" plugin into /cstrike/addons/amxmodx/plugins
Edit the /cstrike/addons/amxmodx/configs/plugins.ini and put this

rw.amxx

In a NEW line.

Whitch features will be coding in the next version?

The Gather will be paused after 15 rounds and everyone need to change from the team, the admin typ for the second half .ready and the gather will start the second half.

If you have any other suggestions, feel free to ask // submit them here!

Kind Regards,

Xmoo
Attached Files
File Type: sma Get Plugin or Get Source (rw.sma - 3112 views - 9.3 KB)

Last edited by Xmoo; 06-19-2010 at 06:23.
Xmoo is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-19-2010 , 06:22   Re: Gather Plugin V1.0
Reply With Quote #2

Bad coded?
__________________
Retired.

Last edited by Xalus; 06-19-2010 at 06:24.
Xalus is offline
Xmoo
Junior Member
Join Date: May 2010
Old 06-19-2010 , 06:23   Re: Gather Plugin V1.0
Reply With Quote #3

Xalus, where?
Xmoo is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-19-2010 , 06:26   Re: Gather Plugin V1.0
Reply With Quote #4

Isn't theire a way to do this much easyer & smaller?
PHP Code:
public FuncAdd(idlevelcid)
{
    if(
gbAlreadyAdded[id])
    {
        
client_print(idprint_chat"You've already been added.")
        return
    }
    else
    {
        
gbAlreadyAdded[id] = true
    
}
    
    if (
get_cvar_num("sv_player") == 1)
    {
        
players++
        
server_cmd("sv_player 2")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 1/10")
    }
    
    if (
get_cvar_num("sv_player") == 2)
    {
        
players++
        
server_cmd("sv_player 3")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 2/10")
    }
    
    if (
get_cvar_num("sv_player") == 3)
    {
        
players++
        
server_cmd("sv_player 4")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 3/10")
    }
    if (
get_cvar_num("sv_player") == 4)
    {
        
players++
        
server_cmd("sv_player 5")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 4/10")
    }
    if (
get_cvar_num("sv_player") == 5)
    {
        
players++
        
server_cmd("sv_player 6")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 5/10")
    }
    if (
get_cvar_num("sv_player") == 6)
    {
        
players++
        
server_cmd("sv_player 7")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 6/10")
    }
    if (
get_cvar_num("sv_player") == 7)
    {
        
players++
        
server_cmd("sv_player 8")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 7/10")
    }
    if (
get_cvar_num("sv_player") == 8)
    {
        
players++
        
server_cmd("sv_player 9")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 8/10")
    }
    if (
get_cvar_num("sv_player") == 9)
    {
        
players++
        
server_cmd("sv_player 10")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - 9/10")
    }
    if (
get_cvar_num("sv_player") == 10)
    {
        
players++
        
server_cmd("sv_player 0")
        
set_hudmessage(255000.10.206.010000.0)
        
show_hudmessage(0"Ready for next match!^n Admin typ .ready to start the game!")
    }
    
    return

__________________
Retired.
Xalus is offline
Xmoo
Junior Member
Join Date: May 2010
Old 06-19-2010 , 06:29   Re: Gather Plugin V1.0
Reply With Quote #5

Maybe your right.
I will update the plugin in the next version with the .add command.
But it works right now on this way. ;)
Xmoo is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-19-2010 , 06:29   Re: Gather Plugin V1.0
Reply With Quote #6

Ye but if u wanne this approved (maybe)
- U need make script a bit better ;)
__________________
Retired.
Xalus is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-19-2010 , 06:33   Re: Gather Plugin V1.0
Reply With Quote #7

Not test but something like this maybe:

PHP Code:
public FuncAdd(idlevelcid)
{
    if(
gbAlreadyAdded[id])
    {
        
client_print(idprint_chat"You've already been added.")
        return
    }
    else
        
gbAlreadyAdded[id] = true

    set_hudmessage
(255000.10.206.010000.0)
    if (
get_cvar_num("sv_player") != 10)
    {
        
players++
        
server_cmd("sv_player %d"get_cvar_num("sv_player") + 1)
        
show_hudmessage(0"Ready for next match!^n typ .add to add yourself to the game - %d/10"get_cvar_num("sv_player"))
    }
    else if (
get_cvar_num("sv_player") == 10)
    {
        
players++
        
server_cmd("sv_player 0")
        
show_hudmessage(0"Ready for next match!^n Admin typ .ready to start the game!")
    }
    
    return

__________________
Retired.

Last edited by Xalus; 06-19-2010 at 06:41.
Xalus is offline
Xmoo
Junior Member
Join Date: May 2010
Old 06-19-2010 , 06:33   Re: Gather Plugin V1.0
Reply With Quote #8

Okay, i will update it shortly then. ;)
Xmoo is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 06-19-2010 , 06:34   Re: Gather Plugin V1.0
Reply With Quote #9

That one isn't compelet

& First test it :p
__________________
Retired.
Xalus is offline
Xmoo
Junior Member
Join Date: May 2010
Old 06-19-2010 , 06:35   Re: Gather Plugin V1.0
Reply With Quote #10

I know it isn't complet and not tested. ;)

But the people who want to use the PLUGIN, can use it.
We are currently busy with the V1.1 version with the 15 round block.
Xmoo 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 15:32.


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