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

[ANY] Weddings


Post New Thread Closed Thread   
 
Thread Tools Display Modes
necavi
Veteran Member
Join Date: Sep 2010
Old 07-28-2013 , 23:21   Re: Weddings
#11

A better option would be using the built in IsClientReplay(client) function.
necavi is offline
Dr. O
Junior Member
Join Date: Jul 2013
Location: The House of Dr. O
Old 07-29-2013 , 02:46   Re: Weddings
#12

Quote:
Originally Posted by Franc1sco View Post
You need to add a public cvar

For example:

PHP Code:
public OnPluginStart() {
CreateConVar("sm_Weddings_version"PLUGIN_VERSION"plugin info"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_NOTIFY|FCVAR_DONTRECORD);

And next, you can search servers with that cvar in websites as http://www.game-monitor.com/ or you will can see in "Servers with this Plugin:" when your plugin will be approve, however, now seems that this feature is buggy in "New plugins" section xD
Cool, thank you!


Quote:
Originally Posted by cREANy0 View Post
Hahahahahaha
How do you get this Idea?

btw nice plugin ;)
People on my server wanted to get married and there used to be arguments about who is whose wife and stuff like that. So I wanted to make it official


Quote:
Originally Posted by scorpadorp View Post
1 bug:
The Replay bot shows up in the menu. Try detecting it and removing it. This can help detect it:
Code:
stock bool:IsReplayBot(client) {
    decl S];
    GetClientName(client, name, sizeof(name));
    return IsFakeClient(client) && StrContains(name, "Replay", false) > -1;    
}
Also, a suggestion, try adding a divorced list, showing who has been divorced and and how many times per client.
Yea, I did not think about bots, will fix that.
And also I was planning to do some statistics for the plugin anyways, i.e. how many times people have married, proposed, divorced etc. and have some top 10 list for that too or something. I guess this will cover your suggestion.

EDIT
I did an update, please tell me if the bots are still listed.

Last edited by Dr. O; 07-29-2013 at 04:17.
Dr. O is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 07-29-2013 , 14:45   Re: Weddings
#13

Quote:
Originally Posted by scorpadorp View Post
Very neat idea. The players already love the plugin.

1 bug:
The Replay bot shows up in the menu. Try detecting it and removing it. This can help detect it:
Code:
stock bool:IsReplayBot(client) {
	decl S];
	GetClientName(client, name, sizeof(name));
	return IsFakeClient(client) && StrContains(name, "Replay", false) > -1;	
}
Also, a suggestion, try adding a divorced list, showing who has been divorced and and how many times per client.
But I wanted to marry Replay... She is my waifu.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Rd1981
Senior Member
Join Date: Apr 2011
Old 07-29-2013 , 14:50   Re: Weddings
#14

Is it possible to give this SQL database support for multiple servers ?
Rd1981 is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 07-30-2013 , 13:03   Re: Weddings
#15

Didn't know about IsClientReplay(client), thanks.

Also, bots don't show up anymore, so it worked. 2 more suggestions:

- Have a more exciting event when people get married. Right now it just shows their name in chat. Perhaps you can add cvars for the following (screen flash once, playing custom wedding music, custom HUD text display).

- Allow the menu time to stay forever.

- cvar to delete data

Last edited by scorpadorp; 07-30-2013 at 17:42.
scorpadorp is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 07-30-2013 , 13:56   Re: Weddings
#16

Quote:
Originally Posted by Rd1981 View Post
Is it possible to give this SQL database support for multiple servers ?
I would imagine if you changed the default database to use an actual sql database that it would work as such, IDK I am just guessing here.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-30-2013 , 17:46   Re: Weddings
#17

Quote:
Originally Posted by vman315 View Post
I would imagine if you changed the default database to use an actual sql database that it would work as such, IDK I am just guessing here.
Youll have to rewrite the sql interface to use tqueries.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Dr. O
Junior Member
Join Date: Jul 2013
Location: The House of Dr. O
Old 07-31-2013 , 01:43   Re: Weddings
#18

Quote:
Originally Posted by Rd1981 View Post
Is it possible to give this SQL database support for multiple servers ?
Yes, I will try to do this for the next update.

EDIT


Done. Please tell me if you can use your custom database.

Last edited by Dr. O; 07-31-2013 at 05:47.
Dr. O is offline
eyes of hunter
Member
Join Date: Dec 2011
Old 07-31-2013 , 03:36   Re: Weddings
#19

Please, if you have time, could you add what franc1sco suggested, a menu with some 'shared options' for the couple. Right now I've thought of these:

Bacon visible only to the couple
Shared money
Maybe Friendly fire disabled against each other?

This looks really promising, we are looking forward to using it! Thanks in advance!
eyes of hunter is offline
Dr. O
Junior Member
Join Date: Jul 2013
Location: The House of Dr. O
Old 07-31-2013 , 04:06   Re: Weddings
#20

Quote:
Originally Posted by eyes of hunter View Post
Please, if you have time, could you add what franc1sco suggested, a menu with some 'shared options' for the couple. Right now I've thought of these:

Bacon visible only to the couple
Shared money
Maybe Friendly fire disabled against each other?

This looks really promising, we are looking forward to using it! Thanks in advance!
Sure, I already gave a bunch of native functions, those can be used by other plugins. It's then the task of other plugin authors to use them and to do additional features based on marriages.
If anyone needs a specific native which I didn't provide, let me know.

I'm glad you like it, have fun! ;)
Dr. O is offline
Closed Thread



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 15:48.


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