01.05.2013, 21:27
Hey all, I want to create a little zone...I mean..if player is in that zone it will give him $10 each 2 seconds for example, is this possible?
new MoneyArea;
OnGameModeInit()
{
MoneyArea = CreateDynamicSphere(0.0, 0.0, 0.0, 3.0);
SetTimer("CheckMoney", 1788, true);
}
forward CheckMoney()
public CheckMoney()
{
foreach(new i : Player)
{
if(IsPlayerInDynamicArea(i)) GivePlayerMoney(i, 10);
}
}