01.05.2013, 21:45
Please note this solution requires the streamer plugin here https://sampforum.blast.hk/showthread.php?tid=102865
and foreach include here https://sampforum.blast.hk/showthread.php?tid=92679
and foreach include here https://sampforum.blast.hk/showthread.php?tid=92679
pawn Код:
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);
}
}