10.12.2009, 05:33
on top:
ongamemodeinit:
ongamemodeext:
on bottom:
pawn Код:
new
g_iMoneyTimer;
forward MoneyTimer();
pawn Код:
g_iMoneyTimer = SetTimer( "MoneyTimer", 10, true );
pawn Код:
KillTimer( g_iMoneyTimer );
pawn Код:
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;
}