HELP: Money.
#1

Hey,
How would I give money to everyone in a certain area, when a timer is up.
Reply
#2

Does anyone know?
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)