14.06.2013, 13:29
Ive made a business system and i have npc's in each business and I want players to be able to rob them but i need help making two timers one for the player and one for the businesses.
Player timer:
A timer for how often a player can rob a business
Time between robs: 2 minutes
Business timer:
A timer for how often the business can be robbed
Time between robs: 5 minutes
Heres my business enum:
For business I will be using bRobTimer as the timer for each business
Player unum:
For players I will be using the RobTimer enum for each player.
please help me im stuck
Player timer:
A timer for how often a player can rob a business
Time between robs: 2 minutes
Business timer:
A timer for how often the business can be robbed
Time between robs: 5 minutes
Heres my business enum:
Код:
enum bizInfo
{
bType,
bStatus,
bOwner[32],
Float:bX,
Float:bY,
Float:bZ,
bPickup,
bMoney,
bProducts,
Text3D:bText,
bNpcL,
bSold,
bLevel,
bPrice,
bAP,
bNpc[32],
bNpcS,
bNpcI,
bRecentlyRobbed,
bRobTimer
}
Player unum:
Код:
enum pInfo
{
// Temp Values
LoggedIn,
Spawn,
Zombie,
ZInfected,
// Permanent Values
pIP,
Gender,
Age,
Level,
pScore,
pSkin,
Money,
pAdmin,
pJob,
WantedLevel,
Float:pX,
Float:pY,
Float:pZ,
Tutorial,
Banned,
pScope,
VW,
Int,
pDeath,
pFac,
pKill,
Float:Health,
Float:Armour,
pWeapon[13],
pWeaponAmmo[13],
// VIP
pVIP,
// VIP Job
pVIPJob,
// Spawns //
pHospital,
pPrison,
pPrisonTime,
//Hitman//
pContract,
pCSuccess,
pCFail,
//Prison//
pPrisonReason[64],
pPrisonBy[32],
//Factions//
pFacDuty,
//Businesses//
pBiz,
pVBiz,
pOwner,
//Robbery Guage//
RobTime,
RobTimer
}
please help me im stuck

