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

Join/Leave Annoucments v. 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related        Approver:   Johnny got his gun (102)
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-18-2004 , 19:19   Join/Leave Annoucments v. 1.2
Reply With Quote #1

/*
Join/Leave Message 1.2 by BigBaller

Just shows a basic Tsay like message to all players when user
is connecting, has established connection and disconnected from your server.

Just upload into your amxx/plugins folder
Add join_leave.amx in your amxx/plugins.ini

Restart server or change map.

ENJOY!

*New, You are able to turn messages off and on using the cvar
amx_join_leave

1 = On
0 = Off

Plugin by default is 1

Change Log
v 1.0 - Started with basic messages.
v 1.1 - Created a cvar to disable messages (cvar is amx_join_leave 1|0)
v 1.2 - Moved the messages up, they conflicted with plugins such as StatsX and PTB
*/
Attached Files
File Type: sma Get Plugin or Get Source (join_leave.sma - 29087 views - 2.8 KB)
__________________

BigBaller is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-18-2004 , 19:22  
Reply With Quote #2

may i request that you make a cvar that can turn it off?
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-18-2004 , 19:23  
Reply With Quote #3

in future versions I will try and place that in, for now this is it.
__________________

BigBaller is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-18-2004 , 19:27  
Reply With Quote #4

oh .... WELL GJ BALLER im almost done w/ my plugin
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 03:20  
Reply With Quote #5

Don't use return PLUGIN_CONTINUE in plugin_init()
Johnny got his gun is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-19-2004 , 03:21  
Reply With Quote #6

Wow, I didnt notice that, thanx JGHG, I fixed it, updated
__________________

BigBaller is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-19-2004 , 06:43  
Reply With Quote #7

Instead of the set_task.. why not use call YourSubHere(user[])?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-19-2004 , 14:56  
Reply With Quote #8

because I am nubby and learning how to do that

maybe in later versions when I incorpate a cvar to allow turning it off and on will I use the call function, i didnt quite understand how it worked soo I used set task.

thanks for the suggestion.
__________________

BigBaller is offline
tnsk8er27
Senior Member
Join Date: Mar 2004
Location: richfield MN
Old 03-19-2004 , 16:15  
Reply With Quote #9

Quote:
Originally Posted by Johnny got his gun
Don't use return PLUGIN_CONTINUE in plugin_init()
why cant you???
__________________
Toxic
tnsk8er27 is offline
Send a message via AIM to tnsk8er27
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-19-2004 , 17:28  
Reply With Quote #10

Updated

Added

cvar amx_join_leave 1|0

as it says in header 1 = On and 0 = Off.
__________________

BigBaller 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 10:39.


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