Home » Renegade Discussions » Mod Forum » storing cash in some sort of bank
storing cash in some sort of bank [message #464923] |
Mon, 26 March 2012 04:09  |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
I want to create some sort of bank however i have no idea how i can create some sort of storage that can hold the money
i know there used to be a way to rebuild the nod turrets if you picked up a powerup i wanted to do some similar but with a chatcommand
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
|
Re: storing cash in some sort of bank [message #464995 is a reply to message #464923] |
Tue, 27 March 2012 16:44   |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
i dont have anyhting more specifik
i want to create a script/object that can play as bank for me
and i want to be able for example use !store <amount>
to store money
i dont have more details then that sla.ro helped
if turret rebuild worked with just scripts i should be able to do it that way.
ill get into as soon as i get out of exams
if i get stuck then ill give more details and also code that way its easier to help
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
|
Re: storing cash in some sort of bank [message #465024 is a reply to message #464998] |
Wed, 28 March 2012 04:09   |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
iRANian wrote on Wed, 28 March 2012 03:12 | Is the bank object, player or team specific and does this bank exist until the match ends/server restarts/indefinitely or w/e?
|
ban is supposed to exist for one game team specifik
C4Smoke wrote on Wed, 28 March 2012 04:19 | DarkOrbit Owner of Cloud Gaming had his own bank system setup. Maybe you could pm him here and ask him to share.
|
i know but id like to get this up and running myself that way i might understand scripts better again
Owner of kambot TT server
kambot.freeforums.org
|
|
|
|
Re: storing cash in some sort of bank [message #465032 is a reply to message #464923] |
Wed, 28 March 2012 06:24   |
triattack
Messages: 14 Registered: May 2011
Karma: 0
|
Recruit |
|
|
I use a really simple pool system for my building revival in apb if you mod it a bit more and make the pool store the ammount a player has in an array that uses the player ID you should have some sort of bank system.
if you split it and add a script to add interest to it you should have a bank system.
if(Get_Money(PlayerID) >= fund_hp)
{
Set_Money(PlayerID,Get_Money(PlayerID)-fund_hp);
money_hp[Get_Team(PlayerID)] ++;
int temp = money_hp[Get_Team(PlayerID)];
int temp1 = temp * fund_hp;
int temp2 = fund_hp * needed_amount_donations_hp;
char funded[250];
sprintf(funded,"%d has been added to the Helli Pad pool the Helli Pad pool now contains: %d / %d", fund_hp, temp1, temp2);
Send_Message_Team(team,0,255,0,funded);
bool restored = tri_Restore(hp,needed_amount_donations_wf,money_hp[Get_Team(PlayerID)],4);
if(restored)
{
Send_Message_Team(team,0,255,5,"your hp is restored nice job");
}
}
this is a really short part of the plugin (it isn't released as the FDS isn't done yet and the plugin still needs to be cleaned once done i'll post it here and on the apb forums with source.
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Dec 19 13:58:45 MST 2024
Total time taken to generate the page: 0.01166 seconds
|