27.05.2011, 08:20
No, both of u wrong...
pawn Код:
public OnGameModeInit( )
{
SetTimer( "ScoreMoney", 60 * 60000, 1 );
return 1;
}
forward ScoreMoney( ); // You don't need the "playerid" param here, leave it empty.
public ScoreMoney( )
{
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) )
GivePlayerMoney( i, 200 ),
SetPlayerScore( i, GetPlayerScore( i ) + 2 );
}
return 1;
}