


Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!function bank_comm()
{
level.balance = 0;
level thread deposit();
level thread withdraw();
}
function deposit()
{
trig_depo = GetEnt("deposit_trig","targetname");
trig_depo SetHintString("Hold ^3[{+activate}]^7 to Deposit into Community Bank[Amount:1000]");
trig_depo SetCursorHint("HINT_NOICON");
while(1)
{
while(1)
{
trig_depo waittill("trigger", player);
if (player zm_score::can_player_purchase(1000))
{
level.balance += 1000;
player zm_score::minus_to_player_score(1000);
//player PlayLocalSound("purchase_accept");
IPrintLn("Deposited $1000(New Total = " + level.balance + ")");
}
else
{
//player PlayLocalSound("purchase_deny");
IPrintLn("Not Enough Money");
}
break;
}
wait(0.25);
}
}
function withdraw()
{
trig_with = GetEnt("withdraw_trig", "targetname");
trig_with SetHintString("Hold ^3[{+activate}]^7 to Withdraw From Community Bank\n[Amount: 1000][Fee: 100]");
trig_with SetCursorHint("HINT_NOICON");
while(1)
{
while(1)
{
trig_with waittill("trigger", player);
if (level.balance >= 1000 && player zm_score::can_player_purchase(100))
{
player zm_score::add_to_player_score(1000);
level.balance -= 1000;
wait(0.01);
player zm_score::minus_to_player_score(100);
//player PlayLocalSound("purchase_accept");
IPrintLn("Withdrew $1000(New Total = " + level.balance + ")");
}
else if (level.balance < 1000)
{
//player PlayLocalSound("purchase_deny");
IPrintLn("Insufficient Funds(Total = " + level.balance + ")");
}
else
{
//player PlayLocalSound("purchase_deny");
IPrintLn("Not Enough Money");
}
break;
}
wait(0.25);
}
}
level thread bank_comm();
#using scripts\zm\_zm_score;
purchase_accept,,,zombie\purchase\accept\accept_00.wav,,,UIN_MOD,,,,,BUS_FX,,,,,,90,90,0,500,500,,,,,,,,,,,,,,,,3d,front,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,yes,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
purchase_deny,,,zombie\purchase\deny\deny_00.wav,,,UIN_MOD,,,,,BUS_FX,,,,,,90,90,0,500,500,,,,,,,,,,,,,,,,3d,front,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,,,,,yes,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
I just tested this and the bank works . I didn't add the sounds yet I will add them later just wanted to confirm and say thanks. This was a great feature in ZIS when playing co op !
One question is it possible to delete or perhaps change the colour of the HUD when you deposit or remove the points ?
IPrintLn("Deposited $1000(New Total = " + level.balance + ")");
IPrintLn("^XDeposited $1000(New Total = " + level.balance + ")");
IPrintLn("Withdrew $1000(New Total = " + level.balance + ")");
IPrintLn("^XWithdrew $1000(New Total = " + level.balance + ")");