HELP: Money.
#3

on top:
pawn Код:
new
  g_iMoneyTimer;

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

Reply


Messages In This Thread
HELP: Money. - by Austin_Lynn - 10.12.2009, 01:02
Re: HELP: Money. - by Austin_Lynn - 10.12.2009, 04:05
Re: HELP: Money. - by LarzI - 10.12.2009, 05:33

Forum Jump:


Users browsing this thread: 1 Guest(s)