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

Need players to connect - requested


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-25-2019 , 09:06   Need players to connect - requested
Reply With Quote #1

Hi, i'm here to post a small plugin that sends a message to other servers in a network.
Ie, if your server is need more players to enter. It is requested by some user

To install:
1. Create a rcon.rc file in amxmodx/configs dir and put it this content:

Also replace servers with your info.

Code:
amx_send_msg 0 "127.0.0.1" "27015" "1234" // Server 01
amx_send_msg 1 "127.0.0.1" "27015" "1234" // Server 02
amx_send_msg 2 "127.0.0.1" "27015" "1234" // Server 03
amx_send_msg 2 "127.0.0.1" "27015" "1234" // Server 04
2. Compile and install the plugin in your server. Make sure that sockets module is installed

To use in game:
1. Players can use the .need command in say as he need, with a delay (amx_need_delay) of 20 seconds.

2. That is all, the servers will receive a message like:
(127.0.0.1) (Biohazard Server) - Need players: 13 of 32!

Ps. This is first release, i will do:
1. Dynamic array to get unlimited servers count;
2. Translate it
3. Optmize some code??

Cheers
Attached Files
File Type: sma Get Plugin or Get Source (network.sma - 121 views - 3.2 KB)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 01-25-2019 , 14:10   Re: Need players to connect - requested
Reply With Quote #2

I actually didnt get the idea.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 01-25-2019 , 17:27   Re: Need players to connect - requested
Reply With Quote #3

Quote:
Originally Posted by SomewhereLost View Post
I actually didnt get the idea.
You will be able to send message from your one server to another.

Like: You have 2 servers. Public And PUG.
You need 2 Players to start a PUG, by using command .need with delay cvar of 20 secs, you can send message to your Public Server from PUG, Need 2 Players For PUG, 8/10
Alber9091 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-29-2019 , 07:51   Re: Need players to connect - requested
Reply With Quote #4

Quote:
Originally Posted by Alber9091 View Post
You will be able to send message from your one server to another.

Like: You have 2 servers. Public And PUG.
You need 2 Players to start a PUG, by using command .need with delay cvar of 20 secs, you can send message to your Public Server from PUG, Need 2 Players For PUG, 8/10
Yes like that.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 01:25.


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