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

Connect Messages 1.4( Updated 08-15-10 )


Post New Thread Reply   
 
Thread Tools Display Modes
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-07-2010 , 10:21   Re: Connect Messages(+welcome) v1.1
Reply With Quote #41

Thanks for translation. Will be added in v1.2
Lure.d is offline
Send a message via Skype™ to Lure.d
WhiteHawk
Member
Join Date: Dec 2009
Old 01-07-2010 , 10:25   Re: Connect Messages(+welcome) v1.1
Reply With Quote #42

Quote:
Originally Posted by Lure.d View Post
Thanks for translation. Will be added in v1.2
You're welcome
WhiteHawk is offline
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 01-07-2010 , 11:35   Re: Connect Messages(+welcome) v1.1
Reply With Quote #43

Quote:
Originally Posted by Lure.d View Post
why did you mentioned mysql? cvars and mysql are nothing alike. i believe i will make cvars, lots of people suggest that. BTW: hi, were from the same country
It would be nice, because if someone want to buy vip and vip has a admin chat flag and he can set him welcome message ir mysql will be supported.
Ok nevermind.

Hi mate ;)
soolt is offline
Send a message via Skype™ to soolt
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-07-2010 , 12:38   Re: Connect Messages(+welcome) v1.1
Reply With Quote #44

Quote:
Originally Posted by soolt View Post
It would be nice, because if someone want to buy vip and vip has a admin chat flag and he can set him welcome message ir mysql will be supported.
Ok nevermind.

Hi mate ;)
Hi.
Look, mysql vips/admins are automaticly given access flags defined for their status, for e.x. : user has nearly all privilegies(chat,immunity, ban,kic,vote,cvar,etc..), whilst vip only has(kick, vote, chat) as i remember.
This has nothing to do with connect messages + sql, its just admin flags.
However i will make amx_cm_connectmessage which will be connect_messages 1.1b version, for people to design their own messages.

Minimum requirements will be admin_chat(flag G).

Dam dude, your avatar is right(WTF???)
Lure.d is offline
Send a message via Skype™ to Lure.d
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 01-07-2010 , 13:46   Re: Connect Messages(+welcome) v1.1
Reply With Quote #45

Quote:
Originally Posted by Lure.d View Post
Hi.
Look, mysql vips/admins are automaticly given access flags defined for their status, for e.x. : user has nearly all privilegies(chat,immunity, ban,kic,vote,cvar,etc..), whilst vip only has(kick, vote, chat) as i remember.
This has nothing to do with connect messages + sql, its just admin flags.
However i will make amx_cm_connectmessage which will be connect_messages 1.1b version, for people to design their own messages.

Minimum requirements will be admin_chat(flag G).

Dam dude, your avatar is right(WTF???)
Here is what i want ;]

Okay my friend, i will wait, ty for explain
soolt is offline
Send a message via Skype™ to soolt
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 01-07-2010 , 20:56   Re: Connect Messages(+welcome) v1.1
Reply With Quote #46

Hi Lure.d, I have 2 remarks for you.
When you write only one line after if(...), else if(...), else, case and ect,
you may not use { }

Here is example with your code:
PHP Code:
public client_putinserver(id) {
    if (
get_pcvar_num(cvar_plugin_enabled) > 0) {
        
set_task(5.0"welcome"id);
        new 
name[30]
        
get_user_name(idname29)
        if (
get_pcvar_num(cvar_plugin_only_welcome) == 0) {
            if (
is_user_bot(id))
                
ColorChat(0TEAM_COLOR"^x04%s ^x03%L"CM_BOTLANG_PLAYER"MSG_HAS_CONNECTED"name);
            else {
                if (
get_user_flags(id) & ADMIN_CHAT)
                    
ColorChat(0TEAM_COLOR"^x04%s ^x03%L"CM_ADMINLANG_PLAYER"MSG_HAS_CONNECTED"name);
                else
                    
ColorChat(0TEAM_COLOR"^x04%s ^x03%L"CM_NORMALLANG_PLAYER"MSG_HAS_CONNECTED"name);
            }
        }
    }
    return 
PLUGIN_HANDLED

As you already noticed, I deleted this part from your code:
PHP Code:
        } else {
            return 
PLUGIN_HANDLED
        

It's not necessarily to use it too, becouse plugin will work only when cvar_plugin_enabled is > 0 and when it is 0, nothing will happen.
__________________

Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-08-2010 , 06:04   Re: Connect Messages(+welcome) v1.1
Reply With Quote #47

just making sure it doesn't do anything if its false
Lure.d is offline
Send a message via Skype™ to Lure.d
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 01-08-2010 , 15:29   Re: Connect Messages 1.2c [New version: 08-01-10]
Reply With Quote #48

New version 1.2.c makes it simplier to compiler. Now works without colorchat.inc, its inside the plugin so no more problems. Woot.
Lure.d is offline
Send a message via Skype™ to Lure.d
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2010 , 01:41   Re: Connect Messages 1.2c [New version: 08-01-10]
Reply With Quote #49

Don't use #define for strings that are used more than once.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 02-15-2010 , 06:50   Re: Connect Messages 1.2c [New version: 08-01-10]
Reply With Quote #50

i think i'll make a cvar for custom tags ^^
EDIT: woot new version is out here somewhere

Last edited by Lure.d; 02-15-2010 at 10:51.
Lure.d is offline
Send a message via Skype™ to Lure.d
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 08:03.


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