Raised This Month: $32 Target: $400
 8% 

New Lobby - Chat System


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 07-17-2013 , 00:40   New Lobby - Chat System
Reply With Quote #1

Hi, this is my first public plugin.

first, sorry for my basic engish.

Description
This is a lobbies plugin, create a lobby, join in a lobby, chat with lobbies members, and more.
To add new default lobby names, open lobby.ini file
To chat with lobby members use say_team
To open menu, write /lobby in SAY
Write /create_lobby in SAY to create a new lobby with a new name: example of use:
-say:"/create_lobby pro lobby" create a new lobby with "pro lobby" name

Instalation
Put .amxx file in addons/amxmodx/plugins folder
Put .ini file in addons/amxmodx/configs folder
Put .txt file in addons/data/lang folder

Changelog
Spoiler


Cvars
Code:
lobby_admin > only admins can create lobbies (1 enabled | 0 disabled)
lobby_maxmembers > max members in lobby
lobby_maxlobby > max lobbies limit
Credits
*Test:
-GokuX
-chetah
-Fuck_You
-Matias_ESF
-Flys


we not see bugs, if you see one, contact me ;)

*Multilingual:
-English Roccoxx and naven
-Espaņol Roccoxx
-Polski naven
-Deutsch UchihaSkills
-Dansk iHacked
-Estonian liivar07

*and thanks to:
-MANU by SanitizeChat stock.
-Stereo by the create lobby in say idea.

Screenshot
Attached Thumbnails
Click image for larger version

Name:	lobby.jpg
Views:	1779
Size:	96.5 KB
ID:	122760  
Attached Files
File Type: sma Get Plugin or Get Source (lobbychat.sma - 318 views - 16.9 KB)
File Type: ini lobby.ini (172 Bytes, 158 views)
File Type: txt lobby.txt (2.9 KB, 173 views)
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 09-09-2020 at 14:13.
Roccoxx is offline
Send a message via MSN to Roccoxx
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-17-2013 , 00:49   Re: New Lobby - Chat System
Reply With Quote #2

You forgot to mention the command "/lobby" in your post. Overall, an interesting plugin. I'm sure I've seen something similar on these forums but nothing published to be approved.
DruGzOG is offline
Send a message via AIM to DruGzOG
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 07-17-2013 , 00:53   Re: New Lobby - Chat System
Reply With Quote #3

Quote:
Originally Posted by DruGzOG View Post
You forgot to mention the command "/lobby" in your post. Overall, an interesting plugin. I'm sure I've seen something similar on these forums but nothing published to be approved.
ups Edit!

started the plugin from 0, and not see other plugins, was a challenge for me
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 07-17-2013 , 08:30   Re: New Lobby - Chat System
Reply With Quote #4

You should remove this:
"Gay Lobby"
"Brazzers Lobby"
Why? Read rules

"Bailopan Lobby"
Hum here we all know bailopan, but i think that who plays in my servers hasnt any idea about who is him
__________________
Jhob94 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-17-2013 , 09:36   Re: New Lobby - Chat System
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
You should remove this:
"Gay Lobby"
"Brazzers Lobby"
Why? Read rules

"Bailopan Lobby"
Hum here we all know bailopan, but i think that who plays in my servers hasnt any idea about who is him
The only lobby that needs to be changed is the one called "Gay Lobby". You should make a configuration file where players can create their own lobby names or add more if they need/want to.
DruGzOG is offline
Send a message via AIM to DruGzOG
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 07-17-2013 , 09:45   Re: New Lobby - Chat System
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
The only lobby that needs to be changed is the one called "Gay Lobby". You should make a configuration file where players can create their own lobby names or add more if they need/want to.
ok, wait me, in the night i add this
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 07-17-2013 , 10:08   Re: New Lobby - Chat System
Reply With Quote #7

Quote:
Originally Posted by DruGzOG View Post
The only lobby that needs to be changed is the one called "Gay Lobby". You should make a configuration file where players can create their own lobby names or add more if they need/want to.
Brazzers is related to porn so he should remove too
__________________
Jhob94 is offline
Old 07-17-2013, 10:10
DruGzOG
This message has been deleted by DruGzOG. Reason: No point in explaining.
Stereo
Veteran Member
Join Date: Dec 2010
Old 07-17-2013 , 10:42   Re: New Lobby - Chat System
Reply With Quote #8

Nice!

I would change some things, to optimize:

PHP Code:
stock bool:in_lobby(id)
{
    for(
0g_lobbysi++)
        if(
g_data[id][i] == member || g_data[id][i] == creator) return true
    
return false

and

PHP Code:
if(g_data[id][g_selected[id]])
{
        for( new 
id2 1id2 <= g_maxplayersid2++){
            if(
g_connected[id2] && g_data[id2][g_selected[id]]){
                
hns_print_color(id2"^x04[%s]^x03%s ^x03%s^x01: %s"buffersz_status[g_data[id][g_selected[id]]], namesay)
            }
        }

You can add a comand to create a lobby (for example "say /create_lobby <name of lobby>")

Last edited by Stereo; 07-17-2013 at 11:13.
Stereo is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 07-17-2013 , 11:01   Re: New Lobby - Chat System
Reply With Quote #9

Quote:
Originally Posted by Stereo View Post
Nice!

I would change some things, to optimize:

PHP Code:
stock bool:in_lobby(id)
{
    for(
0g_lobbysi++)
        if(
g_data[id][i] == member || g_data[id][i] == creator) return true
        
return false

and

PHP Code:
if(g_data[id][g_selected[id]])
{
        for( new 
id2 1id2 <= g_maxplayersid2++){
            if(
g_connected[id2] && g_data[id2][g_selected[id]]){
                
hns_print_color(id2"^x04[%s]^x03%s ^x03%s^x01: %s"buffersz_status[g_data[id][g_selected[id]]], namesay)
            }
        }

You can add a comand (for example "say /create_lobby <name of lobby>")
Edit!! thx you my friend.

Quote:
Originally Posted by Jhob94 View Post
Brazzers is related to porn so he should remove too
you can change the names, i not post spam or urls.
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 07-17-2013 at 11:02.
Roccoxx is offline
Send a message via MSN to Roccoxx
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-17-2013 , 11:09   Re: New Lobby - Chat System
Reply With Quote #10

Either create clean default names or remove them all



Why not use cvars for these?
Code:
const max_lobby = 8 // max lobbies count
const max_members = 4 // max lobbies members


Why not use ML for these?
Code:
new const sz_maxlobbys[] = "Max lobby limit"
new const sz_maxmembers[] = "Max Member limit"
new const sz_admins[] = "Only an admin can create lobby"
new const sz_not[] = "No lobbies Found"
new const sz_already[] = "You are already member"
new const sz_creator[] = "You already create a lobby"
new const sz_not_lobby[] = "You not have a lobby"
new const sz_not_exist[] = "Lobby not exist"
new const sz_not_member[] = "You not are member"
__________________
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).

Last edited by YamiKaitou; 07-17-2013 at 11:10.
YamiKaitou is offline
Reply


Thread Tools
Display Modes

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 17:11.


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