10.12.2009, 01:02
Hey,
How would I give money to everyone in a certain area, when a timer is up.
How would I give money to everyone in a certain area, when a timer is up.
new
g_iMoneyTimer;
forward MoneyTimer();
g_iMoneyTimer = SetTimer( "MoneyTimer", 10, true );
KillTimer( g_iMoneyTimer );
public MoneyTimer()
{
for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( PlayerToPoint( 10.0, i, 0.0, 0.0, 0.0 ) ) //You can also use IsPlayerInArea
GivePlayerMoney( i, 200 ); //Switch 200 with the amount of money you wanna give
}
return true;
}