AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Join/Leave Annoucments v. 1.2 (https://forums.alliedmods.net/showthread.php?t=326)

BigBaller 03-18-2004 19:19

Join/Leave Annoucments v. 1.2
 
1 Attachment(s)
/*
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
*/

tnsk8er27 03-18-2004 19:22

may i request that you make a cvar that can turn it off?

BigBaller 03-18-2004 19:23

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

tnsk8er27 03-18-2004 19:27

oh .... WELL GJ BALLER im almost done w/ my plugin

Johnny got his gun 03-19-2004 03:20

Don't use return PLUGIN_CONTINUE in plugin_init()

BigBaller 03-19-2004 03:21

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

devicenull 03-19-2004 06:43

Instead of the set_task.. why not use call YourSubHere(user[])?

BigBaller 03-19-2004 14:56

because I am nubby and learning how to do that :P

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.

tnsk8er27 03-19-2004 16:15

Quote:

Originally Posted by Johnny got his gun
Don't use return PLUGIN_CONTINUE in plugin_init()

why cant you???

BigBaller 03-19-2004 17:28

Updated

Added

cvar amx_join_leave 1|0

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


All times are GMT -4. The time now is 03:28.

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