如何让Project或Plugin付费使用?! [英] How can i make Project or Plugin to be pay to use?!

查看:66
本文介绍了如何让Project或Plugin付费使用?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!



我为一个程序(机器人)制作了一个插件..我想让它付费使用..



我的意思是让插件检查帐户的名称,如果它存在于PaidList.txt中



As示例:付费帐户名称是Ahmed,然后我将名称Ahmed放在主机中的文本中,如http://1.1.1.0/PaidList.txt并且它将像这样AccountName:DateExpire(Ahmed :30/1/2013)



插件检查此文件并加载所有数据,并检查:



  if (PaidList.Contains(  Ahmed))
{
插件有效!!
}
else
{
Message.show( 你需要付钱才能使用这个插件,对不起!);
}





如果还有其他方法可以制作这样的系统或者比这更好的系统..请告诉我..



或者使它像服务器和客户端..我的PC是服务器并连接到包含数据的Mysql(Navicat)..或者使用INI文件。无论如何请帮助:) ..



谢谢..



问候,



Ahmed GameHackerPM(GH)。

解决方案

您的用户应该拥有许可证密钥,理想情况下,这些密钥与他们的机器相连,这样他们就可以不要在机器之间移动。然后是的,您将发送一条消息,以查看该许可证密钥是否有效。如果您的应用程序不在线(也就是说,如果它的性质并不意味着您可以指望所有用户都在线),那么您需要在某处存储许可证文件并希望人们找不到它。

Hi!

I made a plugin for a program ( bot ) .. I want to make it pay to use..

What i mean that to make the plugin check the name of the account if it''s exist in PaidList.txt

As example : Paid account name is "Ahmed", then i put the name "Ahmed" in text in host like this "http://1.1.1.0/PaidList.txt" And it will be like this "AccountName:DateExpire" (Ahmed:30/1/2013)

The plugin check this file and load all the data, and check :

if (PaidList.Contains("Ahmed"))
   {
      Plugin works !!
   }
   else
   {
      Message.show("You need to pay to use this plugin, sorry!");
   }



If there is another way to make system like this or better than this one.. Please tell me..

Or to make it like a server and client.. My PC is the server and connect to Mysql ( Navicat ) that contains the data.. Or with INI files.. Please Help anyway :)..

Thanks..

Regards,

Ahmed GameHackerPM (GH).

解决方案

Your users should have license keys, which ideally tie to their machine so they can''t be moved between machines. Then yes, you would send a message to see if that license key is valid. If your app is not online ( that is, if it''s nature doesn''t mean you can count on all users being online ), then you need to store a license file somewhere and hope people don''t find it.


这篇关于如何让Project或Plugin付费使用?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆