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.