Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

22 lines
597 B
Plaintext

//::///////////////////////////////////////////////
//:: Scarface's Persistent Banking
//:: sfpb_w_fail
//:://////////////////////////////////////////////
/*
Written By Scarface
*/
//////////////////////////////////////////////////
#include "sfpb_config"
int StartingConditional()
{
// Vars
object oPC = GetLastSpeaker();
string sID = SF_GetPlayerID(oPC);
int nGold = StringToInt(GetLocalString(OBJECT_SELF, "GOLD"));
int nBanked = GetCampaignInt(GetName(GetModule()), "SFPB_GOLD_" + sID);
// Check if the player has enough to withdraw
return(nBanked < nGold);
}