PayDay
#10

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
This could should work, it maybe the size of MAX_PLAYERS_

pawn Код:
public OnGameModeInit()
{
  SetTimer( "PayDay", 540000, 1 );
  return 1;
}

forward PayDay( );
public PayDay( )
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if ( !IsPlayerConnected(i) && IsPlayerSpawn[i] == 1 )continue;
       
        if( gTeam[ i ] == TEAM_SWAT || gTeam[ i ] == TEAM_ARMY)
        {
            GivePlayerMoney( i, 1000 );
            SendClientMessage( i, 0xE89B5BBB, "» Police daily paycheck: $1000." );
        }
    }
}
i test this and work perfect thanks again.
Reply


Messages In This Thread
PayDay - by ScRipTeRi - 24.12.2013, 22:05
Re: PayDay - by Patrick - 24.12.2013, 22:16
Re: PayDay - by ScRipTeRi - 24.12.2013, 22:18
Re: PayDay - by Jefff - 24.12.2013, 22:19
Re: PayDay - by Patrick - 24.12.2013, 22:23
Re: PayDay - by Jefff - 24.12.2013, 22:30
Re: PayDay - by Patrick - 24.12.2013, 22:34
Re: PayDay - by Jefff - 24.12.2013, 22:37
Re: PayDay - by Patrick - 24.12.2013, 22:41
Re: PayDay - by ScRipTeRi - 24.12.2013, 22:52

Forum Jump:


Users browsing this thread: 2 Guest(s)