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


Raised This Month: $ Target: $400
 0% 

Connect Info Mod (VERSION 1.7 RELEASED)


Post New Thread Reply   
 
Thread Tools Display Modes
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 09-22-2007 , 03:58   Re: Connect Info Mod
Reply With Quote #11

Seems to be an ok plugin (finally from you). Haven't read the code though. Anyhows, this has been made, little bit differently, but has been made. Maybe you should add cvars on what is shown. I'd like to show a players rank and name, but no IP or SteamID etc.

And finally, why to call it "mod" ?
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-22-2007 , 06:59   Re: Connect Info Mod
Reply With Quote #12

Make a string cvar that will be the connect message.
Then, allow to put something like %rank , %ip , %name , %country, so admins can choose what they want in it :

amx_connect_message "%name (rank: %rank) has just connect to the server from %country"
anx_disconnect_message "%name (%steamid) has just left the game


Add also what arkshine has suggested.(include green chat)
Have a look at v3x connect/disconnect plugins.

It will be a great plugin.
ConnorMcLeod is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-22-2007 , 09:07   Re: Connect Info Mod
Reply With Quote #13

Alright everyone, i'll forward your suggestions and take them into consideration. I'll add them and beta test them sometime this weekend or into next week, thanks for your suggestions.

@Pro Patria Finland: I like calling it a mod

@connorr, great suggestion except I don't really know how to do that, but I can include the green chat or red, anything you guys want, but I'm not sure how to do what you suggested.\

@arkshine, I might add alot of things you suggested, but probably not all thanks anyway. Very good suggestions and since you guys are suggestion such great ones, I can see this getting approved in the future.

Color will be added.

oh and connorr, if you could help me with your suggestion that'd be great because I honestly have no idea how I would do that, any tutorials or something?
X-Script is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-22-2007 , 09:25   Re: Connect Info Mod
Reply With Quote #14

Quote:
oh and connorr, if you could help me with your suggestion
It's easy.

Just replace the content. Something like :

Code:
new uName[32]; get_user_name( id, uName, sizeof uName - 1 ); replace( mystring, sizeof mystring - 1,  "%name", uName );
__________________

Last edited by Arkshine; 09-22-2007 at 09:28.
Arkshine is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-22-2007 , 09:30   Re: Connect Info Mod
Reply With Quote #15

Ohh okay, so a stringCvar is this?
PHP Code:
register_cvar"amx_stringcvar""A" ); 
Except we have to use pcvars so this?

PHP Code:
new blahblah

blahblah 
register_cvar"amx_stringcvar""A" ); 
X-Script is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-22-2007 , 10:33   Re: Connect Info Mod
Reply With Quote #16

Instead of using get_pcvar_num(), you have to use get_pcvar_string() .


It's just an example.

Code:
    #include <amxmodx>     new p_enter_msg;             #define _charsmax(%1) sizeof( %1 ) - 1                     public plugin_init( )     {         p_enter_msg = register_cvar( "amx_enter_message", "%name% vient de nous rejoindre !\n    Bienvenue et bon Frags ! :)" );     }     public client_putinserver( id )     {         new     //  - - - - - - - - - - - - - - - - - - -             szMessage[192],             szName[32];     //      |             c_Msg = _charsmax( szMessage );     //  - - - - - - - - - - - - - - - - - - -                     get_pcvar_string( p_enter_msg, szMessage, c_Msg );         get_user_name( id, szName, _charsmax( szName ) );         replace( szMessage, c_Msg, "%name%", szName );         replace_all( szMessage, c_Msg, "\n", "^n" );                 set_hudmessage( 0, 225, 0, 0.7, 0.55, 0, 6.0, 6.0, 0.5, 0.15, 3 );         show_hudmessage( 0, "%s", szMessage );     }
__________________

Last edited by Arkshine; 09-22-2007 at 10:43.
Arkshine is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-22-2007 , 10:34   Re: Connect Info Mod
Reply With Quote #17

Yeah I know, thanks arkshine.

X-Script is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-22-2007 , 12:17   Re: Connect Info Mod
Reply With Quote #18

I'm not going to approve this until a good bit more features are added (nor bother looking at the code); all the features to be added, or the ones I would at least suggest, have pretty much already been said.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-22-2007 , 13:30   Re: Connect Info Mod
Reply With Quote #19

Okay i'm done with some features that were requested.

BETA TESTERS?

NOT RELEASING NEW VERSION UNTILL TESTED

Last edited by X-Script; 09-22-2007 at 13:35.
X-Script is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-22-2007 , 13:36   Re: Connect Info Mod
Reply With Quote #20

Post here. ;)

I think it's interesting to see the evolution of a plugin.
__________________
Arkshine 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 14:34.


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