Jump to content
MakeWebGames

Clans have been upgraded


a_bertrand

Recommended Posts

Clans now have clans stats for example to store some money, or honor or number of kills or whatever YOU decide. To demonstrate the usage, I created a simple clans_bank (if I remember right Kyle created one too, right? Sorry if it's a double).

Basically you create a stat inside the install.sql:

replace into clans_stats_types(name) values('Bank');

 

After that you can call:

<?php
SetClanStat($memberOf, "Bank",100);
$value=GetClanStat($memberOf, "Bank");
Link to comment
Share on other sites

Clans now have clans stats for example to store some money, or honor or number of kills or whatever YOU decide. To demonstrate the usage, I created a simple clans_bank (if I remember right Kyle created one too, right? Sorry if it's a double).

Basically you create a stat inside the install.sql:

replace into clans_stats_types(name) values('Bank');

 

After that you can call:

<?php
SetClanStat($memberOf, "Bank",100);
$value=GetClanStat($memberOf, "Bank");

Thats alright. I need to update my clan bank anyways so when I do I will edit it to fit in with the new updates so just incase anyone still wants to use mine. Because my version allows the depositing of currency to the vault but only clan masters can make a withdraw

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...