amand
Known Member
- Messages
- 12
- Reaction score
- 0
- Points
- 118
Hello cabconmodding.com, Today I Need Help On A Script Here I'll explain myself.
I Would Like A Bank System For Zombies, I Tried To Make A Script But I Did Not Succeed So I Want To Ask You If You Can Help Me.
What I can not do is take away / give money and save it for when money is taken out is the money that we put.
I would like to make the Buried System Bank.
Here is My Code:
I Would Like A Bank System For Zombies, I Tried To Make A Script But I Did Not Succeed So I Want To Ask You If You Can Help Me.
What I can not do is take away / give money and save it for when money is taken out is the money that we put.
I would like to make the Buried System Bank.
Here is My Code:
Code:
Bank_Begin()
{
level thread LowerMessage ("Bank_Begin", "Hold [{+ usereload}] To Deposit / Withdraw Points");
level.Bank_Begin = spawn ("script_model", (-2671.26, -810.359, 1494.13));
level.Bank_Begin setModel ("mlv_p6_zm_bu_crate_01");
level.Blockers = spawn ("script_model", (-2671.26, -810.359, 1530.13));
level.Blockers setModel ("collision_clip_sphere_64");
level.Bank_Begin_Trigger = spawn ("trigger_radius", (-2671.26, -810.359, 1530.13), 1, 50, 10);
level.Bank_Begin_Trigger SetCursorHint ("HINT_NOICON");
level.Bank_Begin_Trigger UseTriggerRequireLookAt ();
level.Bank_Begin_Trigger setLowerMessage (level.Bank_Begin_Trigger, "Bank_Begin");
for (;;)
{
level.Bank_Begin_Trigger waittill ("trigger", i);
if (i UseButtonPressed ())
{
i.score - = i.score;
player.BankMoney + = i.score;
wait 0.5;
}
else
{
if (i JumpButtonPressed ())
i.score + = i.score;
player.BankMoney - = i.score;
wait 0.5;
}
}
}