PayDay
#1

Hello i have create a payday only for Police and problem is money come just to me no to other player here is the code
pawn Код:
public OnGameModeInit()
{
SetTimer("PayDay",540000,1);
return 1;
}
forward PayDay();
public PayDay()
{
     for(new i=0; i<MAX_PLAYERS_; i++)
     {
         if(!IsPlayerConnected(i))continue;
         if(gTeam[i] == TEAM_SWAT || gTeam[i] == TEAM_ARMY)
         {
         if(IsPlayerSpawn[i] == 0)continue;
         GivePlayerMoney(i, 1000);
         SendClientMessage(i,0xE89B5BBB,"» Police daily paycheck: $1000.");
         return 1;
         }
     }
     return 1;
  }
Thank you.
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: 1 Guest(s)